blob: f4c77b4e124aca6ef08f843177be141d03101161 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package jogamp.opengl.util.pngj.chunks;
import jogamp.opengl.util.pngj.ImageInfo;
import jogamp.opengl.util.pngj.PngjException;
/**
* Pseudo chunk type, for chunks that were skipped on reading
*/
public class PngChunkSkipped extends PngChunk {
public PngChunkSkipped(String id, ImageInfo info, int clen) {
super(id, info);
this.length = clen;
}
@Override
public ChunkOrderingConstraint getOrderingConstraint() {
return ChunkOrderingConstraint.NONE;
}
@Override
public ChunkRaw createRawChunk() {
throw new PngjException("Non supported for a skipped chunk");
}
@Override
public void parseFromRaw(ChunkRaw c) {
throw new PngjException("Non supported for a skipped chunk");
}
@Override
public void cloneDataFromRead(PngChunk other) {
throw new PngjException("Non supported for a skipped chunk");
}
@Override
public boolean allowsMultiple() {
return true;
}
}
|