Package | Description |
---|---|
ar.com.hjg.pngj |
PNGJ main package
|
ar.com.hjg.pngj.chunks |
Contains the code related to chunk management for the PNGJ library.
|
Modifier and Type | Method and Description |
---|---|
PngChunk |
IChunkFactory.createChunk(ChunkRaw chunkRaw,
ImageInfo imgInfo) |
Modifier and Type | Method and Description |
---|---|
List<PngChunk> |
ChunkSeqReaderPng.getChunks() |
List<PngChunk> |
PngReaderFilter.getChunksList() |
Modifier and Type | Method and Description |
---|---|
void |
PngWriter.queueChunk(PngChunk chunk)
Queues an ancillary chunk for writing.
|
Modifier and Type | Class and Description |
---|---|
class |
PngChunkACTL
acTL chunk.
|
class |
PngChunkBKGD
bKGD Chunk.
|
class |
PngChunkCHRM
cHRM chunk.
|
class |
PngChunkFCTL
fcTL chunk.
|
class |
PngChunkFDAT
fdAT chunk.
|
class |
PngChunkGAMA
gAMA chunk.
|
class |
PngChunkHIST
hIST chunk.
|
class |
PngChunkICCP
iCCP chunk.
|
class |
PngChunkIDAT
IDAT chunk.
|
class |
PngChunkIEND
IEND chunk.
|
class |
PngChunkIHDR
IHDR chunk.
|
class |
PngChunkITXT
iTXt chunk.
|
class |
PngChunkMultiple
PNG chunk type (abstract) that allows multiple instances in same image.
|
class |
PngChunkOFFS
oFFs chunk.
|
class |
PngChunkPHYS
pHYs chunk.
|
class |
PngChunkPLTE
PLTE chunk.
|
class |
PngChunkSBIT
sBIT chunk.
|
class |
PngChunkSingle
PNG chunk type (abstract) that does not allow multiple instances in same image.
|
class |
PngChunkSPLT
sPLT chunk.
|
class |
PngChunkSRGB
sRGB chunk.
|
class |
PngChunkSTER
sTER chunk.
|
class |
PngChunkTEXT
tEXt chunk.
|
class |
PngChunkTextVar
Superclass (abstract) for three textual chunks (TEXT, ITXT, ZTXT)
|
class |
PngChunkTIME
tIME chunk.
|
class |
PngChunkTRNS
tRNS chunk.
|
class |
PngChunkUNKNOWN
Placeholder for UNKNOWN (custom or not) chunks.
|
class |
PngChunkZTXT
zTXt chunk.
|
Modifier and Type | Method and Description |
---|---|
PngChunk |
ChunkFactory.createChunk(ChunkRaw chunkRaw,
ImageInfo imgInfo) |
protected PngChunk |
ChunkFactory.createEmptyChunkExtended(String id,
ImageInfo imgInfo)
Factory for chunks that are not in the original PNG standard.
|
protected PngChunk |
ChunkFactory.createEmptyChunkKnown(String id,
ImageInfo imgInfo) |
protected PngChunk |
ChunkFactory.createEmptyChunkUnknown(String id,
ImageInfo imgInfo)
This is used as last resort factory method.
|
PngChunk |
ChunksList.getById1(String id)
Returns only one chunk
|
PngChunk |
ChunksList.getById1(String id,
boolean failIfMultiple)
Returns only one chunk or null if nothing found - does not include queued
|
PngChunk |
ChunksList.getById1(String id,
String innerid,
boolean failIfMultiple)
Returns only one chunk or null if nothing found - does not include queued
|
PngChunk |
ChunksListForWrite.getQueuedById1(String id)
Same as getById1(), but looking in the queued chunks
|
PngChunk |
ChunksListForWrite.getQueuedById1(String id,
boolean failIfMultiple)
Same as getById1(), but looking in the queued chunks
|
PngChunk |
ChunksListForWrite.getQueuedById1(String id,
String innerid,
boolean failIfMultiple)
Same as getById1(), but looking in the queued chunks
|
Modifier and Type | Method and Description |
---|---|
static List<PngChunk> |
ChunkHelper.filterList(List<PngChunk> target,
ChunkPredicate predicateKeep)
Returns only the chunks that "match" the predicate
See also trimList()
|
List<? extends PngChunk> |
ChunksList.getById(String id)
All chunks with this ID
|
List<? extends PngChunk> |
ChunksList.getById(String id,
String innerid)
If innerid!=null and the chunk is PngChunkTextVar or PngChunkSPLT, it's filtered by that id
|
List<PngChunk> |
ChunksList.getChunks()
WARNING: this does NOT return a copy, but the list itself.
|
List<PngChunk> |
ChunksList.getEquivalent(PngChunk c2)
Finds all chunks "equivalent" to this one
|
List<? extends PngChunk> |
ChunksListForWrite.getQueuedById(String id)
Same as getById(), but looking in the queued chunks
|
List<? extends PngChunk> |
ChunksListForWrite.getQueuedById(String id,
String innerid)
Same as getById(), but looking in the queued chunks
|
List<PngChunk> |
ChunksListForWrite.getQueuedChunks()
warning: this is NOT a copy, do not modify
|
List<PngChunk> |
ChunksListForWrite.getQueuedEquivalent(PngChunk c2)
Finds all chunks "equivalent" to this one
|
protected static List<PngChunk> |
ChunksList.getXById(List<PngChunk> list,
String id,
String innerid) |
Modifier and Type | Method and Description |
---|---|
void |
ChunksList.appendReadChunk(PngChunk chunk,
int chunkGroup)
Adds chunk in next position.
|
static boolean |
ChunkHelper.equivalent(PngChunk c1,
PngChunk c2)
Adhoc criteria: two ancillary chunks are "equivalent" ("practically same type") if they have same id and (perhaps,
if multiple are allowed) if the match also in some "internal key" (eg: key for string values, palette for sPLT,
etc)
When we use this method, we implicitly assume that we don't allow/expect two "equivalent" chunks in a single PNG
Notice that the use of this is optional, and that the PNG standard actually allows text chunks that have same key
|
List<PngChunk> |
ChunksList.getEquivalent(PngChunk c2)
Finds all chunks "equivalent" to this one
|
List<PngChunk> |
ChunksListForWrite.getQueuedEquivalent(PngChunk c2)
Finds all chunks "equivalent" to this one
|
static boolean |
ChunkHelper.isText(PngChunk c) |
static boolean |
ChunkHelper.isUnknown(PngChunk c)
"Unknown" just means that our chunk factory (even when it has been augmented by client code) did not recognize its
id
|
boolean |
ChunkPredicate.match(PngChunk chunk)
The other chunk matches with this one
|
boolean |
ChunksListForWrite.queue(PngChunk c)
Adds chunk to queue
If there
|
void |
PngMetadata.queueChunk(PngChunk c) |
void |
PngMetadata.queueChunk(PngChunk c,
boolean lazyOverwrite)
Queues the chunk at the writer
|
boolean |
ChunksListForWrite.removeChunk(PngChunk c)
Remove Chunk: only from queued
WARNING: this depends on c.equals() implementation, which is straightforward for SingleChunks.
|
Modifier and Type | Method and Description |
---|---|
static List<PngChunk> |
ChunkHelper.filterList(List<PngChunk> target,
ChunkPredicate predicateKeep)
Returns only the chunks that "match" the predicate
See also trimList()
|
protected static List<PngChunk> |
ChunksList.getXById(List<PngChunk> list,
String id,
String innerid) |
static int |
ChunkHelper.trimList(List<PngChunk> target,
ChunkPredicate predicateRemove)
Remove (in place) the chunks that "match" the predicate
See also filterList
|
Copyright © 2014. All rights reserved.