Enum ChunkType
- java.lang.Object
-
- java.lang.Enum<ChunkType>
-
- org.apache.commons.imaging.formats.png.ChunkType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static interfaceChunkType.ChunkConstructor
-
Enum Constant Summary
Enum Constants Enum Constant Description bKGDBackground colorcHRMPrimary chromaticities and white pointeXIfExchangeable Image File (Exif) ProfilegAMAImage gammagIFgGIF Graphic Control ExtensiongIFxGIF Application ExtensionhISTImage histogramiCCPEmbedded ICC profileIDATImage dataIENDImage trailerIHDRImage headeriTXtInternational textual dataoFFsImage offsetpCALCalibration of pixel valuespHYsPhysical pixel dimensionsPLTEPalettesBITSignificant bitssCALPhysical scalesPLTSuggested palettesRGBStandard RGB color spacesTERIndicator of Stereo ImagetEXtTextual datatIMEImage last-modification timetRNSTransparencyzTXtCompressed textual data
-
Field Summary
Fields Modifier and Type Field Description (package private) byte[]array(package private) ChunkType.ChunkConstructorconstructor(package private) Extensionextensionprivate static ChunkType[]types(package private) intvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateChunkType()privateChunkType(ChunkType.ChunkConstructor constructor)privateChunkType(Extension extension)privateChunkType(Extension extension, ChunkType.ChunkConstructor constructor)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static ChunkTypefindType(int chunkType)(package private) static PngChunkmakeChunk(int length, int chunkType, int crc, byte[] bytes)static ChunkTypevalueOf(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.
-
-
-
Enum Constant Detail
-
IHDR
public static final ChunkType IHDR
Image header
-
PLTE
public static final ChunkType PLTE
Palette
-
IDAT
public static final ChunkType IDAT
Image data
-
IEND
public static final ChunkType IEND
Image trailer
-
tRNS
public static final ChunkType tRNS
Transparency
-
cHRM
public static final ChunkType cHRM
Primary chromaticities and white point
-
gAMA
public static final ChunkType gAMA
Image gamma
-
iCCP
public static final ChunkType iCCP
Embedded ICC profile
-
sBIT
public static final ChunkType sBIT
Significant bits
-
sRGB
public static final ChunkType sRGB
Standard RGB color space
-
tEXt
public static final ChunkType tEXt
Textual data
-
zTXt
public static final ChunkType zTXt
Compressed textual data
-
iTXt
public static final ChunkType iTXt
International textual data
-
bKGD
public static final ChunkType bKGD
Background color
-
hIST
public static final ChunkType hIST
Image histogram
-
pHYs
public static final ChunkType pHYs
Physical pixel dimensions
-
sPLT
public static final ChunkType sPLT
Suggested palette
-
tIME
public static final ChunkType tIME
Image last-modification time
-
oFFs
public static final ChunkType oFFs
Image offset- Since:
- 1.0.0-alpha6
-
pCAL
public static final ChunkType pCAL
Calibration of pixel values- Since:
- 1.0.0-alpha6
-
sCAL
public static final ChunkType sCAL
Physical scale
-
gIFg
public static final ChunkType gIFg
GIF Graphic Control Extension- Since:
- 1.0.0-alpha6
-
gIFx
public static final ChunkType gIFx
GIF Application Extension- Since:
- 1.0.0-alpha6
-
sTER
public static final ChunkType sTER
Indicator of Stereo Image- Since:
- 1.0.0-alpha6
-
eXIf
public static final ChunkType eXIf
Exchangeable Image File (Exif) Profile- Since:
- 1.0.0-alpha6
-
-
Field Detail
-
types
private static final ChunkType[] types
-
array
final byte[] array
-
value
final int value
-
extension
final Extension extension
-
constructor
final ChunkType.ChunkConstructor constructor
-
-
Constructor Detail
-
ChunkType
private ChunkType()
-
ChunkType
private ChunkType(ChunkType.ChunkConstructor constructor)
-
ChunkType
private ChunkType(Extension extension)
-
ChunkType
private ChunkType(Extension extension, ChunkType.ChunkConstructor constructor)
-
-
Method Detail
-
values
public static ChunkType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ChunkType c : ChunkType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChunkType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
findType
static ChunkType findType(int chunkType)
-
makeChunk
static PngChunk makeChunk(int length, int chunkType, int crc, byte[] bytes) throws java.io.IOException
- Throws:
java.io.IOException
-
-