public enum TextEncodingRestriction extends java.lang.Enum<TextEncodingRestriction>
Enum Constant and Description |
---|
ISO_8859_1_OR_UTF_8
Strings are only encoded with ISO-8859-1 or UTF-8.
|
NO_RESTRICTIONS
No String encoding restrictions.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
get a description of the text encoding restriction.
|
byte |
getMask()
get the mask used to set the appropriate bits in the flag byte in the ID3v2.4 extended header.
|
java.lang.String |
toString()
get a string representation of the text encoding restriction.
|
static TextEncodingRestriction |
valueOf(int textEncodingRestriction)
converts an integral value to its corresponding text encoding restriction enum.
|
static TextEncodingRestriction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextEncodingRestriction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextEncodingRestriction NO_RESTRICTIONS
public static final TextEncodingRestriction ISO_8859_1_OR_UTF_8
public static TextEncodingRestriction[] values()
for (TextEncodingRestriction c : TextEncodingRestriction.values()) System.out.println(c);
public static TextEncodingRestriction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDescription()
public byte getMask()
public static TextEncodingRestriction valueOf(int textEncodingRestriction) throws java.lang.IllegalArgumentException
textEncodingRestriction
- integral value to be converted to a text encoding restriction enum.java.lang.IllegalArgumentException
- if the integral value is not a valid text encoding restriction.public java.lang.String toString()
toString
in class java.lang.Enum<TextEncodingRestriction>