Modifier and Type | Class and Description |
---|---|
static class |
ChunkType.Attribute
We made Attribute public for general usage outside of Attribute class.
|
Enum Constant and Description |
---|
BKGD |
CHRM |
GAMA |
HIST |
ICCP |
IDAT |
IEND |
IHDR |
ITXT |
PHYS |
PLTE |
SBIT |
SPLT |
SRGB |
TEXT |
TIME |
TRNS |
UNKNOWN |
ZTXT |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsIgnoreCase(java.lang.String name) |
static ChunkType |
fromInt(int value) |
static ChunkType |
fromString(java.lang.String name) |
ChunkType.Attribute |
getAttribute() |
java.lang.String |
getName() |
int |
getRanking()
Ranking is used for sorting chunks to make them conform to PNG specification
before passing them to PNGWriter.
|
int |
getValue() |
java.lang.String |
toString() |
static ChunkType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChunkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChunkType IHDR
public static final ChunkType IDAT
public static final ChunkType IEND
public static final ChunkType PLTE
public static final ChunkType TEXT
public static final ChunkType ZTXT
public static final ChunkType ITXT
public static final ChunkType TRNS
public static final ChunkType GAMA
public static final ChunkType CHRM
public static final ChunkType SRGB
public static final ChunkType ICCP
public static final ChunkType BKGD
public static final ChunkType PHYS
public static final ChunkType SBIT
public static final ChunkType SPLT
public static final ChunkType HIST
public static final ChunkType TIME
public static final ChunkType UNKNOWN
public static ChunkType[] values()
for (ChunkType c : ChunkType.values()) System.out.println(c);
public static ChunkType 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 ChunkType.Attribute getAttribute()
public java.lang.String getName()
public int getValue()
public int getRanking()
public java.lang.String toString()
toString
in class java.lang.Enum<ChunkType>
public static boolean containsIgnoreCase(java.lang.String name)
name
- A String to test against the names of the chunkspublic static ChunkType fromString(java.lang.String name)
public static ChunkType fromInt(int value)