28 lines
591 B
Java
28 lines
591 B
Java
|
package ar.com.hjg.pngj.chunks;
|
||
|
|
||
|
import ar.com.hjg.pngj.ImageInfo;
|
||
|
|
||
|
/**
|
||
|
* PNG chunk type (abstract) that allows multiple instances in same image.
|
||
|
*/
|
||
|
public abstract class PngChunkMultiple extends PngChunk {
|
||
|
|
||
|
protected PngChunkMultiple(String id, ImageInfo imgInfo) {
|
||
|
super(id, imgInfo);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public final boolean allowsMultiple() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* NOTE: this chunk uses the default Object's equals() hashCode() implementation.
|
||
|
*
|
||
|
* This is the right thing to do, normally.
|
||
|
*
|
||
|
* This is important, eg see ChunkList.removeFromList()
|
||
|
*/
|
||
|
|
||
|
}
|