public class ChunksListForWrite extends ChunksList
CHUNK_GROUP_0_IDHR, CHUNK_GROUP_1_AFTERIDHR, CHUNK_GROUP_2_PLTE, CHUNK_GROUP_3_AFTERPLTE, CHUNK_GROUP_4_IDAT, CHUNK_GROUP_5_AFTERIDAT, CHUNK_GROUP_6_END
Constructor and Description |
---|
ChunksListForWrite(ImageInfo imfinfo) |
Modifier and Type | Method and Description |
---|---|
List<? extends PngChunk> |
getQueuedById(String id)
Same as getById(), but looking in the queued chunks
|
List<? extends PngChunk> |
getQueuedById(String id,
String innerid)
Same as getById(), but looking in the queued chunks
|
PngChunk |
getQueuedById1(String id)
Same as getById1(), but looking in the queued chunks
|
PngChunk |
getQueuedById1(String id,
boolean failIfMultiple)
Same as getById1(), but looking in the queued chunks
|
PngChunk |
getQueuedById1(String id,
String innerid,
boolean failIfMultiple)
Same as getById1(), but looking in the queued chunks
|
List<PngChunk> |
getQueuedChunks()
warning: this is NOT a copy, do not modify
|
List<PngChunk> |
getQueuedEquivalent(PngChunk c2)
Finds all chunks "equivalent" to this one
|
boolean |
queue(PngChunk c)
Adds chunk to queue
If there
|
boolean |
removeChunk(PngChunk c)
Remove Chunk: only from queued
WARNING: this depends on c.equals() implementation, which is straightforward for SingleChunks.
|
String |
toString() |
String |
toStringFull()
for debugging
|
int |
writeChunks(OutputStream os,
int currentGroup) |
appendReadChunk, getById, getById, getById1, getById1, getById1, getChunks, getEquivalent, getXById
public ChunksListForWrite(ImageInfo imfinfo)
public List<? extends PngChunk> getQueuedById(String id)
public List<? extends PngChunk> getQueuedById(String id, String innerid)
public PngChunk getQueuedById1(String id, String innerid, boolean failIfMultiple)
public PngChunk getQueuedById1(String id, boolean failIfMultiple)
public PngChunk getQueuedById1(String id)
public List<PngChunk> getQueuedEquivalent(PngChunk c2)
c2
- public boolean removeChunk(PngChunk c)
public boolean queue(PngChunk c)
c
- public int writeChunks(OutputStream os, int currentGroup)
public String toString()
toString
in class ChunksList
public String toStringFull()
toStringFull
in class ChunksList
Copyright © 2014. All rights reserved.