Class PNGContainerReader.Chunk

java.lang.Object
net.mtrop.doom.struct.io.PNGContainerReader.Chunk
Enclosing class:
PNGContainerReader

public static class PNGContainerReader.Chunk extends Object
PNG Chunk data.
  • Method Details

    • getName

      public String getName()
      Returns:
      this chunk's identifier.
    • getCRCNumber

      public int getCRCNumber()
      Returns:
      this chunk's CRC value.
    • getData

      public byte[] getData()
      Returns:
      the data in this chunk.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isAncillary

      public boolean isAncillary()
      Returns:
      true if this chunk is not a part of the required image chunks.
    • isPrivate

      public boolean isPrivate()
      Returns:
      true if this chunk is part of a non-public specification.
    • isReserved

      public boolean isReserved()
      Returns:
      true if this chunk is this chunk has the reserved bit set.
    • isSafeToCopy

      public boolean isSafeToCopy()
      Returns:
      true if this chunk is safe to blindly copy, requiring no other chunks and contains no image-centric data.