use of uk.me.parabola.imgfmt.app.labelenc.BaseEncoder in project mkgmap by openstreetmap.
the class LBLFile method setCharacterType.
public void setCharacterType(String cs, boolean forceUpper) {
log.info("encoding type " + cs);
CodeFunctions cfuncs = CodeFunctions.createEncoderForLBL(cs);
lblHeader.setEncodingType(cfuncs.getEncodingType());
textEncoder = cfuncs.getEncoder();
if (forceUpper && textEncoder instanceof BaseEncoder) {
BaseEncoder baseEncoder = (BaseEncoder) textEncoder;
baseEncoder.setUpperCase(true);
}
}
Aggregations