2018-06-11 22:41:11 +02:00
|
|
|
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 {
|
|
|
|
|
2018-08-28 02:39:41 +02:00
|
|
|
protected PngChunkMultiple(String id, ImageInfo imgInfo) {
|
|
|
|
super(id, imgInfo);
|
|
|
|
}
|
2018-06-11 22:41:11 +02:00
|
|
|
|
2018-08-28 02:39:41 +02:00
|
|
|
@Override
|
|
|
|
public final boolean allowsMultiple() {
|
|
|
|
return true;
|
|
|
|
}
|
2018-06-11 22:41:11 +02:00
|
|
|
|
2018-08-28 02:39:41 +02:00
|
|
|
/**
|
|
|
|
* 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()
|
|
|
|
*/
|
2018-06-11 22:41:11 +02:00
|
|
|
|
|
|
|
}
|