Methods Summary |
---|
public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof TextEncoding)))
{
return false;
}
TextEncoding oOtherTextEncoding = (TextEncoding)oOther;
return (m_byEncoding == oOtherTextEncoding.m_byEncoding);
|
public static org.blinkenlights.jid3.io.TextEncoding | getDefaultTextEncoding()Get the default text encoding which will be used in v2 frames, when not specified.
return s_oDefaultTextEncoding;
|
public java.lang.String | getEncodingString()Get the Java encoding string matching this text encoding.
switch (m_byEncoding)
{
case (byte)0x00:
return "ISO-8859-1";
case (byte)0x01:
return "Unicode";
default:
return null; // can't happen because we control construction of this object
}
|
public byte | getEncodingValue()Get the byte value corresponding to this text encoding.
return m_byEncoding;
|
public static org.blinkenlights.jid3.io.TextEncoding | getTextEncoding(int iEncoding)Get the text encoding object represented by a given integer value.
return getTextEncoding((byte)iEncoding);
|
public static org.blinkenlights.jid3.io.TextEncoding | getTextEncoding(byte byEncoding)Get the text encoding object represented by a given byte value.
switch (byEncoding)
{
case (byte)0x00:
return ISO_8859_1;
case (byte)0x01:
return UNICODE;
default:
throw new ID3Exception("Unknown text encoding value " + byEncoding + ".");
}
|
public static void | setDefaultTextEncoding(org.blinkenlights.jid3.io.TextEncoding oTextEncoding)Set the default text encoding to be used in v2 frames, when not specified.
if (oTextEncoding == null)
{
throw new NullPointerException("Default text encoding cannot be null.");
}
s_oDefaultTextEncoding = oTextEncoding;
|