public class TextEncoding extends AbstractIntStringValuePair
Modifier and Type | Field and Description |
---|---|
static byte |
ISO_8859_1 |
static int |
TEXT_ENCODING_FIELD_SIZE
The number of bytes used to hold the text encoding field size.
|
static byte |
UTF_16 |
static byte |
UTF_16BE |
static byte |
UTF_8 |
key
Modifier and Type | Method and Description |
---|---|
Charset |
getCharsetForId(int id)
Allows direct lookup of the
Charset instance via an id. |
Integer |
getIdForCharset(Charset charset)
Allows to lookup id directly via the
Charset instance. |
static TextEncoding |
getInstanceOf()
Get singleton for this class.
|
createMaps, getIdForValue, getValueForId
getAlphabeticalValueList, getIdToValueMap, getSize, getValueToIdMap
public static final byte ISO_8859_1
public static final byte UTF_16
public static final byte UTF_16BE
public static final byte UTF_8
public static final int TEXT_ENCODING_FIELD_SIZE
public static TextEncoding getInstanceOf()
public Integer getIdForCharset(Charset charset)
Charset
instance.charset
- charsetISO_8859_1
, or null
, if not foundpublic Charset getCharsetForId(int id)
Charset
instance via an id.id
- id, e.g. ISO_8859_1
null
, if not foundCopyright © 2005–2020 jthink.net. All rights reserved.