Package pixy.image.png
Class UnknownChunk
java.lang.Object
pixy.image.png.Chunk
pixy.image.png.UnknownChunk
- All Implemented Interfaces:
java.lang.Comparable<Chunk>
public class UnknownChunk extends Chunk
Special chunk to handle PNG ChunkType.UNKNOWN.
- Version:
- 1.0 12/30/2012
- Author:
- Wen Yu, yuwen_66@yahoo.com
-
Constructor Summary
Constructors Constructor Description UnknownChunk(long length, int chunkValue, byte[] data, long crc)
-
Method Summary
Modifier and Type Method Description int
getChunkValue()
boolean
isValidCRC()
java.lang.String
toString()
void
write(java.io.OutputStream os)
Methods inherited from class pixy.image.png.Chunk
calculateCRC, calculateCRC, compareTo, equals, getChunkType, getCRC, getData, getLength, hashCode
-
Constructor Details
-
UnknownChunk
public UnknownChunk(long length, int chunkValue, byte[] data, long crc)
-
-
Method Details
-
getChunkValue
public int getChunkValue() -
isValidCRC
public boolean isValidCRC()- Overrides:
isValidCRC
in classChunk
-
write
public void write(java.io.OutputStream os) throws java.io.IOException -
toString
public java.lang.String toString()
-