Search in sources :

Example 1 with BaseEncoder

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);
    }
}
Also used : BaseEncoder(uk.me.parabola.imgfmt.app.labelenc.BaseEncoder) CodeFunctions(uk.me.parabola.imgfmt.app.labelenc.CodeFunctions)

Aggregations

BaseEncoder (uk.me.parabola.imgfmt.app.labelenc.BaseEncoder)1 CodeFunctions (uk.me.parabola.imgfmt.app.labelenc.CodeFunctions)1