Class PngChunkItxt
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.PngChunkItxt
-
Constructor Summary
ConstructorsConstructorDescriptionPngChunkItxt(int length, int chunkType, int crc, byte[] bytes) Constructs a new instance. -
Method Summary
Methods inherited from class org.apache.commons.imaging.formats.png.chunks.PngChunk
getBytes, getChunkType, getCrc, getDataStream, getLength, getPropertyBits, isAncillary, isPrivate, isReserved, isSafeToCopyMethods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
Constructor Details
-
PngChunkItxt
public PngChunkItxt(int length, int chunkType, int crc, byte[] bytes) throws ImagingException, IOException Constructs 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.IOException- Thrown on reading error.NullPointerException- ifbytesis null.
-
-
Method Details
-
getContents
- Specified by:
getContentsin classAbstractPngTextChunk
-
getKeyword
- Specified by:
getKeywordin classAbstractPngTextChunk- Returns:
- Gets the keyword.
-
getText
- Specified by:
getTextin classAbstractPngTextChunk- Returns:
- Gets the text.
-
getTranslatedKeyword
-