Class PngChunkText
java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.png.chunks.PngChunk
org.apache.commons.imaging.formats.png.chunks.AbstractPngTextChunk
org.apache.commons.imaging.formats.png.chunks.PngChunkText
- 
Constructor SummaryConstructorsConstructorDescriptionPngChunkText(int length, int chunkType, int crc, byte[] bytes) Constructs a new instance.
- 
Method SummaryMethods inherited from class org.apache.commons.imaging.formats.png.chunks.PngChunkgetBytes, getChunkType, getCrc, getDataStream, getLength, getPropertyBits, isAncillary, isPrivate, isReserved, isSafeToCopyMethods inherited from class org.apache.commons.imaging.common.BinaryFileParserdebugNumber, debugNumber, getByteOrder, setByteOrder
- 
Constructor Details- 
PngChunkTextConstructs a new instance.- Parameters:
- length- chunk length.
- chunkType- chunk type.
- crc- CRC computed over the chunk type and chunk data (but not the length).
- bytes- chunk data bytes.
- Throws:
- ImagingException- Thrown on a parsing error.
- NullPointerException- if- bytesis null.
 
 
- 
- 
Method Details- 
getContents- Specified by:
- getContentsin class- AbstractPngTextChunk
 
- 
getKeyword- Specified by:
- getKeywordin class- AbstractPngTextChunk
- Returns:
- the keyword.
 
- 
getText- Specified by:
- getTextin class- AbstractPngTextChunk
- Returns:
- the text.
 
 
-