uk.me.parabola.imgfmt.app.labelenc
Class CodeFunctions
java.lang.Object
uk.me.parabola.imgfmt.app.labelenc.CodeFunctions
public class CodeFunctions
- extends java.lang.Object
- Author:
- Steve Ratcliffe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENCODING_FORMAT6
public static final int ENCODING_FORMAT6
- See Also:
- Constant Field Values
CodeFunctions
public CodeFunctions()
setEncoder
protected void setEncoder(CharacterEncoder encoder)
getEncoder
public CharacterEncoder getEncoder()
setDecoder
protected void setDecoder(CharacterDecoder decoder)
getDecoder
public CharacterDecoder getDecoder()
getEncodingType
public int getEncodingType()
setEncodingType
protected void setEncodingType(int encodingType)
getCodepage
public int getCodepage()
setCodepage
protected void setCodepage(int codepage)
createEncoderForLBL
public static CodeFunctions createEncoderForLBL(java.lang.String charset)
- Create a CharacterEncoder for the given charset option. Note that this
routine also writes to the lblHeader parameter to set the encoding type.
- Parameters:
charset
- The mkgmap command line option to be interpreted.
- Returns:
- The various character set parameters that will be needed.
createEncoderForLBL
public static CodeFunctions createEncoderForLBL(int format)
- Sets encoding functions for a given format and code page. This is used
when reading from an existing file.
- Parameters:
format
- The format from the lbl header.
- Returns:
- The various character set parameters that will be needed.
getDefaultEncoder
public static CharacterEncoder getDefaultEncoder()
getDefaultDecoder
public static CharacterDecoder getDefaultDecoder()