Top Fields Constructors Methods
jogamp.opengl.util.pngj.chunks

public Class ChunksListForWrite

extends ChunksList
Class Inheritance
Imports
java.io.OutputStream, java.util.ArrayList, .HashMap, .Iterator, .List, jogamp.opengl.util.pngj.ImageInfo, .PngjException, .PngjOutputException

Field Summary

Modifier and TypeField and Description
private final HashMap<String, Integer>
private final List<PngChunk>
queuedChunks

chunks not yet writen - does not include IHDR, IDAT, END, perhaps yes PLTE

Inherited from jogamp.opengl.util.pngj.chunks.ChunksList:
CHUNK_GROUP_0_IDHRCHUNK_GROUP_1_AFTERIDHRCHUNK_GROUP_2_PLTECHUNK_GROUP_3_AFTERPLTECHUNK_GROUP_4_IDATCHUNK_GROUP_5_AFTERIDATCHUNK_GROUP_6_ENDchunksimageInfo

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<? extends PngChunk>
getQueuedById(final String id)

Same as getById(), but looking in the queued chunks

public List<? extends PngChunk>
getQueuedById(final String id, final String innerid)

Same as getById(), but looking in the queued chunks

public PngChunk
getQueuedById1(final String id, final String innerid, final boolean failIfMultiple)

Same as getById1(), but looking in the queued chunks

public PngChunk
getQueuedById1(final String id, final boolean failIfMultiple)

Same as getById1(), but looking in the queued chunks

public PngChunk
getQueuedById1(final String id)

Same as getById1(), but looking in the queued chunks

public List<PngChunk>
getQueuedChunks()

Warning

this is NOT a copy, do not modify

public boolean
queue(final PngChunk c)

Adds chunk to queue Does not check for duplicated or anything

public boolean
removeChunk(final PngChunk c)

Remove Chunk: only from queued

Warning

this depends on c.equals() implementation, which is straightforward for SingleChunks.

private static boolean
shouldWrite(final PngChunk c, final int currentGroup)

this should be called only for ancillary chunks and PLTE (groups 1 - 3 - 5)

public String
toString()

Overrides jogamp.opengl.util.pngj.chunks.ChunksList.toString.

Returns a string representation of the object.
public String
public int
writeChunks(final OutputStream os, final int currentGroup)

Inherited from jogamp.opengl.util.pngj.chunks.ChunksList:
appendReadChunkgetByIdgetByIdgetById1getById1getById1getChunksgetChunksKeysgetEquivalentgetXById

Field Detail

alreadyWrittenKeysback to summary
private final HashMap<String, Integer> alreadyWrittenKeys
queuedChunksback to summary
private final List<PngChunk> queuedChunks

chunks not yet writen - does not include IHDR, IDAT, END, perhaps yes PLTE

Constructor Detail

ChunksListForWriteback to summary
public ChunksListForWrite(final ImageInfo imfinfo)

Method Detail

getQueuedByIdback to summary
public List<? extends PngChunk> getQueuedById(final String id)

Same as getById(), but looking in the queued chunks

getQueuedByIdback to summary
public List<? extends PngChunk> getQueuedById(final String id, final String innerid)

Same as getById(), but looking in the queued chunks

getQueuedById1back to summary
public PngChunk getQueuedById1(final String id, final String innerid, final boolean failIfMultiple)

Same as getById1(), but looking in the queued chunks

getQueuedById1back to summary
public PngChunk getQueuedById1(final String id, final boolean failIfMultiple)

Same as getById1(), but looking in the queued chunks

getQueuedById1back to summary
public PngChunk getQueuedById1(final String id)

Same as getById1(), but looking in the queued chunks

getQueuedChunksback to summary
public List<PngChunk> getQueuedChunks()

Warning

this is NOT a copy, do not modify

queueback to summary
public boolean queue(final PngChunk c)

Adds chunk to queue Does not check for duplicated or anything

removeChunkback to summary
public boolean removeChunk(final PngChunk c)

Remove Chunk: only from queued

Warning

this depends on c.equals() implementation, which is straightforward for SingleChunks. For MultipleChunks, it will normally check for reference equality!

shouldWriteback to summary
private static boolean shouldWrite(final PngChunk c, final int currentGroup)

this should be called only for ancillary chunks and PLTE (groups 1 - 3 - 5)

toStringback to summary
public String toString()

Overrides jogamp.opengl.util.pngj.chunks.ChunksList.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
toStringFullback to summary
public String toStringFull()

Overrides jogamp.opengl.util.pngj.chunks.ChunksList.toStringFull.

for debugging

Annotations
@Override
writeChunksback to summary
public int writeChunks(final OutputStream os, final int currentGroup)