public enum ID3V2EncodingType extends Enum<ID3V2EncodingType> implements IEnumValue
Defines different types of text encoding used in ID3v2.
Enum Constant and Description |
---|
Iso88591
The ISO-8859-1 encoding.
|
Utf16
The UTF-16 encoding with BOM.
|
Utf16Be
The UTF-16 encoding without BOM.
|
Utf8
The UTF-8 encoding.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getAllValues()
Returns the array of all values defined in the class.
|
static ID3V2EncodingType |
getByRawValue(int rawValue) |
IEnumValue |
getEnumValueByName(String name)
Returns the enumeration value by its name.
|
IEnumValue |
getEnumValueByRawValue(int rawValue)
Returns the enumeration value by the raw value associated with it.
|
static IEnumValue |
getFirst() |
int |
getRawValue()
Returns the raw value of this enumeration value.
|
RawIntegerType |
getRawValueType()
Returns the underlying type of the raw value of this enumeration value.
|
static ID3V2EncodingType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ID3V2EncodingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final ID3V2EncodingType Iso88591
The ISO-8859-1 encoding.
public static final ID3V2EncodingType Utf16
The UTF-16 encoding with BOM.
public static final ID3V2EncodingType Utf16Be
The UTF-16 encoding without BOM.
public static final ID3V2EncodingType Utf8
The UTF-8 encoding.
public static ID3V2EncodingType[] values()
for (ID3V2EncodingType c : ID3V2EncodingType.values()) System.out.println(c);
public static ID3V2EncodingType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ID3V2EncodingType getByRawValue(int rawValue)
public static IEnumValue getFirst()
public Object[] getAllValues()
IEnumValue
Returns the array of all values defined in the class.
getAllValues
in interface IEnumValue
public IEnumValue getEnumValueByRawValue(int rawValue)
IEnumValue
Returns the enumeration value by the raw value associated with it.
getEnumValueByRawValue
in interface IEnumValue
rawValue
- The raw value.public IEnumValue getEnumValueByName(String name)
IEnumValue
Returns the enumeration value by its name.
getEnumValueByName
in interface IEnumValue
name
- The name of the enumeration value.public RawIntegerType getRawValueType()
IEnumValue
Returns the underlying type of the raw value of this enumeration value.
getRawValueType
in interface IEnumValue
public int getRawValue()
IEnumValue
Returns the raw value of this enumeration value.
getRawValue
in interface IEnumValue