org.jaudiotagger.tag.id3.valuepair
Class TextEncoding

java.lang.Object
  extended by org.jaudiotagger.tag.datatype.AbstractValuePair<java.lang.Integer,java.lang.String>
      extended by org.jaudiotagger.tag.datatype.AbstractIntStringValuePair
          extended by org.jaudiotagger.tag.id3.valuepair.TextEncoding

public class TextEncoding
extends 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 seesm to understand both.


Field Summary
static java.lang.String CHARSET_ISO_8859_1
           
static java.lang.String CHARSET_UTF_16
           
static java.lang.String CHARSET_UTF_16_ENCODING_FORMAT
           
static java.lang.String CHARSET_UTF_16BE
           
static java.lang.String CHARSET_UTF_8
           
static byte ISO_8859_1
           
static int TEXT_ENCODING_FIELD_SIZE
           
private static TextEncoding textEncodings
           
static byte UTF_16
           
static byte UTF_16BE
           
static byte UTF_8
           
 
Fields inherited from class org.jaudiotagger.tag.datatype.AbstractIntStringValuePair
key
 
Fields inherited from class org.jaudiotagger.tag.datatype.AbstractValuePair
idToValue, iterator, value, valueList, valueToId
 
Constructor Summary
private TextEncoding()
           
 
Method Summary
static TextEncoding getInstanceOf()
           
 
Methods inherited from class org.jaudiotagger.tag.datatype.AbstractIntStringValuePair
createMaps, getIdForValue, getValueForId
 
Methods inherited from class org.jaudiotagger.tag.datatype.AbstractValuePair
getAlphabeticalValueList, getIdToValueMap, getSize, getValueToIdMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHARSET_ISO_8859_1

public static final java.lang.String CHARSET_ISO_8859_1
See Also:
Constant Field Values

CHARSET_UTF_16

public static final java.lang.String CHARSET_UTF_16
See Also:
Constant Field Values

CHARSET_UTF_16BE

public static final java.lang.String CHARSET_UTF_16BE
See Also:
Constant Field Values

CHARSET_UTF_8

public static final java.lang.String CHARSET_UTF_8
See Also:
Constant Field Values

CHARSET_UTF_16_ENCODING_FORMAT

public static final java.lang.String CHARSET_UTF_16_ENCODING_FORMAT
See Also:
Constant Field Values

ISO_8859_1

public static final byte ISO_8859_1
See Also:
Constant Field Values

UTF_16

public static final byte UTF_16
See Also:
Constant Field Values

UTF_16BE

public static final byte UTF_16BE
See Also:
Constant Field Values

UTF_8

public static final byte UTF_8
See Also:
Constant Field Values

TEXT_ENCODING_FIELD_SIZE

public static final int TEXT_ENCODING_FIELD_SIZE
See Also:
Constant Field Values

textEncodings

private static TextEncoding textEncodings
Constructor Detail

TextEncoding

private TextEncoding()
Method Detail

getInstanceOf

public static TextEncoding getInstanceOf()