public enum ImageEncodingRestriction extends java.lang.Enum<ImageEncodingRestriction>
![]() |
![]() |
| Enum Constant and Description |
|---|
NO_RESTRICTIONS
No image encoding restrictions.
|
PNG_OR_JPEG
Images are encoded only with PNG or JPEG.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
get a description of the image 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 image encoding restriction.
|
static ImageEncodingRestriction |
valueOf(int imageEncodingRestriction)
converts an integral value to its corresponding image encoding restriction enum.
|
static ImageEncodingRestriction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageEncodingRestriction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageEncodingRestriction NO_RESTRICTIONS
public static final ImageEncodingRestriction PNG_OR_JPEG
public static ImageEncodingRestriction[] values()
for (ImageEncodingRestriction c : ImageEncodingRestriction.values()) System.out.println(c);
public static ImageEncodingRestriction 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 ImageEncodingRestriction valueOf(int imageEncodingRestriction) throws java.lang.IllegalArgumentException
imageEncodingRestriction - integral value to be converted to a image encoding restriction enum.java.lang.IllegalArgumentException - if the integral value is not a valid image encoding restriction.public java.lang.String toString()
toString in class java.lang.Enum<ImageEncodingRestriction>