ar.com.hjg.pngj.chunks.PngChunkUNKNOWN Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pngj Show documentation
Show all versions of pngj Show documentation
Pure Java library for efficient PNG encoding/decoding
The newest version!
package ar.com.hjg.pngj.chunks;
import ar.com.hjg.pngj.ImageInfo;
/**
* Placeholder for UNKNOWN (custom or not) chunks.
*
* For PngReader, a chunk is unknown if it's not registered in the chunk factory
*/
public class PngChunkUNKNOWN extends PngChunkMultiple { // unkown, custom or not
public PngChunkUNKNOWN(String id, ImageInfo info) {
super(id, info);
}
@Override
public ChunkOrderingConstraint getOrderingConstraint() {
return ChunkOrderingConstraint.NONE;
}
@Override
public ChunkRaw createRawChunk() {
return raw;
}
@Override
public void parseFromRaw(ChunkRaw c) {
}
/* does not do deep copy! */
public byte[] getData() {
return raw.data;
}
/* does not do deep copy! */
public void setData(byte[] data) {
raw.data = data;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy