java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.png.chunks.PngChunk
Direct Known Subclasses:
AbstractPngTextChunk, PngChunkGama, PngChunkIccp, PngChunkIdat, PngChunkIhdr, PngChunkPhys, PngChunkPlte, PngChunkScal

public class PngChunk extends BinaryFileParser
A PNG image is composed of several chunks. This is the base class for the chunks, used by the parser.
See Also:
  • Constructor Details

    • PngChunk

      public PngChunk(int length, int chunkType, int crc, byte[] bytes)
      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:
      NullPointerException - if bytes is null.
  • Method Details