|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectar.com.hjg.pngj.chunks.ChunksList
public class ChunksList
All chunks that form an image, read or to be written chunks include all chunks, but IDAT is a single pseudo chunk without data
Field Summary | |
---|---|
static int |
CHUNK_GROUP_0_IDHR
|
static int |
CHUNK_GROUP_1_AFTERIDHR
|
static int |
CHUNK_GROUP_2_PLTE
|
static int |
CHUNK_GROUP_3_AFTERPLTE
|
static int |
CHUNK_GROUP_4_IDAT
|
static int |
CHUNK_GROUP_5_AFTERIDAT
|
static int |
CHUNK_GROUP_6_END
|
Constructor Summary | |
---|---|
ChunksList(ImageInfo imfinfo)
|
Method Summary | |
---|---|
void |
appendReadChunk(PngChunk chunk,
int chunkGroup)
Adds chunk in next position. |
List<? extends PngChunk> |
getById(String id)
All chunks with this ID |
List<? extends PngChunk> |
getById(String id,
String innerid)
If innerid! |
PngChunk |
getById1(String id)
Returns only one chunk |
PngChunk |
getById1(String id,
boolean failIfMultiple)
Returns only one chunk or null if nothing found - does not include queued If more than one chunk is found, then an exception is thrown (failifMultiple=true or chunk is single) or the last one is returned (failifMultiple=false) |
PngChunk |
getById1(String id,
String innerid,
boolean failIfMultiple)
Returns only one chunk or null if nothing found - does not include queued If more than one chunk (after filtering by inner id) is found, then an exception is thrown (failifMultiple=true or chunk is single) or the last one is returned (failifMultiple=false) |
ArrayList<PngChunk> |
getChunks()
Returns a copy of the list (but the chunks are not copied) This should not be used for general metadata handling |
HashMap<String,Integer> |
getChunksKeys()
Keys of processed (read or writen) chunks |
List<PngChunk> |
getEquivalent(PngChunk c2)
Finds all chunks "equivalent" to this one |
String |
toString()
|
String |
toStringFull()
for debugging |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CHUNK_GROUP_0_IDHR
public static final int CHUNK_GROUP_1_AFTERIDHR
public static final int CHUNK_GROUP_2_PLTE
public static final int CHUNK_GROUP_3_AFTERPLTE
public static final int CHUNK_GROUP_4_IDAT
public static final int CHUNK_GROUP_5_AFTERIDAT
public static final int CHUNK_GROUP_6_END
Constructor Detail |
---|
public ChunksList(ImageInfo imfinfo)
Method Detail |
---|
public void appendReadChunk(PngChunk chunk, int chunkGroup)
public List<? extends PngChunk> getById(String id)
id
-
public List<? extends PngChunk> getById(String id, String innerid)
id
-
public PngChunk getById1(String id)
id
-
public PngChunk getById1(String id, boolean failIfMultiple)
If more than one chunk is found, then an exception is thrown (failifMultiple=true or chunk is single) or the last one is returned (failifMultiple=false)
public PngChunk getById1(String id, String innerid, boolean failIfMultiple)
If more than one chunk (after filtering by inner id) is found, then an exception is thrown (failifMultiple=true or chunk is single) or the last one is returned (failifMultiple=false)
public ArrayList<PngChunk> getChunks()
public HashMap<String,Integer> getChunksKeys()
public List<PngChunk> getEquivalent(PngChunk c2)
c2
-
public String toString()
toString
in class Object
public String toStringFull()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |