org.jaudiotagger.tag.id3.valuepair
Class TextEncoding

java.lang.Object
  extended by org.jaudiotagger.tag.datatype.AbstractValuePair
      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 UTF16BE (this is how the Java UTF-16 charset works).


Field Summary
static java.lang.String CHARSET_ISO_8859_1
           
static java.lang.String CHARSET_UTF_16
           
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
           
static byte UTF_16
           
static byte UTF_16BE
           
static byte UTF_8
           
 
Method Summary
static TextEncoding getInstanceOf()
           
 
Methods inherited from class org.jaudiotagger.tag.datatype.AbstractIntStringValuePair
getIdForValue, getValueForId
 
Methods inherited from class org.jaudiotagger.tag.datatype.AbstractValuePair
getAlphabeticalValueList, getIdToValueMap, getSize, getValueToIdMap
 
Methods inherited from class java.lang.Object
equals, 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

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
Method Detail

getInstanceOf

public static TextEncoding getInstanceOf()