public enum TagSizeRestriction extends java.lang.Enum<TagSizeRestriction>
Enum Constant and Description |
---|
TAG_SIZE_1_MB_AND_128_FRAMES
No more than 128 frames and 1 MB total tag size.
|
TAG_SIZE_128KB_AND_64_FRAMES
No more than 64 frames and 128 KB total tag size.
|
TAG_SIZE_40KB_AND_32_FRAMES
No more than 32 frames and 40 KB total tag size.
|
TAG_SIZE_4KB_AND_32_FRAMES
No more than 32 frames and 4 KB total tag size.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
get a description of the tag size 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 tag size restriction.
|
static TagSizeRestriction |
valueOf(int tagSizeRestriction)
converts an integral value to its corresponding tag size restriction enum.
|
static TagSizeRestriction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TagSizeRestriction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TagSizeRestriction TAG_SIZE_1_MB_AND_128_FRAMES
public static final TagSizeRestriction TAG_SIZE_128KB_AND_64_FRAMES
public static final TagSizeRestriction TAG_SIZE_40KB_AND_32_FRAMES
public static final TagSizeRestriction TAG_SIZE_4KB_AND_32_FRAMES
public static TagSizeRestriction[] values()
for (TagSizeRestriction c : TagSizeRestriction.values()) System.out.println(c);
public static TagSizeRestriction 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 TagSizeRestriction valueOf(int tagSizeRestriction) throws java.lang.IllegalArgumentException
tagSizeRestriction
- integral value to be converted to a tag size restriction enum.java.lang.IllegalArgumentException
- if the integral value is not a valid tag size restriction.public java.lang.String toString()
toString
in class java.lang.Enum<TagSizeRestriction>