public class PngChunkUNKNOWN extends PngChunkMultiple
For PngReader, a chunk is unknown if it's not registered in the chunk factory
PngChunk.ChunkOrderingConstraint| Constructor and Description |
|---|
PngChunkUNKNOWN(String id,
ImageInfo info) |
| Modifier and Type | Method and Description |
|---|---|
PngChunk |
cloneForWrite(ImageInfo imgInfo)
Makes a copy of the chunk.
|
ChunkRaw |
createRawChunk()
Creates the physical chunk.
|
byte[] |
getData() |
PngChunk.ChunkOrderingConstraint |
getOrderingConstraint()
|
void |
parseFromRaw(ChunkRaw c)
Parses raw chunk and fill inside data.
|
void |
setData(byte[] data) |
allowsMultiplecreateEmptyChunk, getChunkGroup, getLen, getOffset, getRaw, hasPriority, setPriority, toStringpublic PngChunk.ChunkOrderingConstraint getOrderingConstraint()
PngChunkgetOrderingConstraint in class PngChunkpublic ChunkRaw createRawChunk()
PngChunkcreateRawChunk in class PngChunkpublic void parseFromRaw(ChunkRaw c)
PngChunkparseFromRaw in class PngChunkpublic byte[] getData()
public void setData(byte[] data)
public PngChunk cloneForWrite(ImageInfo imgInfo)
PngChunkThis is used when copying chunks from a reader to a writer
This is usually a (shallow) copy, and after the cloning this.equals(other) should return true
cloneForWrite in class PngChunkCopyright © 2013. All rights reserved.