TextEncodingpublic class TextEncoding extends org.jaudiotagger.tag.datatype.AbstractIntStringValuePair Text Encoding supported by ID3v24, the id is recognised by ID3
whereas the value maps to a java java.nio.charset.Charset, all the
charsets defined below are guaranteed on every Java platform.
Note in ID3 UTF_16 can be implemented as either UTF16BE or UTF16LE with byte ordering
marks, in JAudioTagger we always implement it as UTF16LE because only this order
is understood in Windows, OSX seem to understand both. |
Fields Summary |
---|
public static final String | CHARSET_ISO_8859_1 | public static final String | CHARSET_UTF_16 | public static final String | CHARSET_UTF_16BE | public static final String | CHARSET_UTF_8 | public static final String | CHARSET_UTF_16_LE_ENCODING_FORMAT | public static final String | CHARSET_UTF_16_BE_ENCODING_FORMAT | 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 | private static TextEncoding | textEncodings |
Constructors Summary |
---|
private TextEncoding()
idToValue.put((int) ISO_8859_1, CHARSET_ISO_8859_1);
idToValue.put((int) UTF_16, CHARSET_UTF_16);
idToValue.put((int) UTF_16BE, CHARSET_UTF_16BE);
idToValue.put((int) UTF_8, CHARSET_UTF_8);
createMaps();
|
|