| Modifier and Type | Field and Description |
|---|---|
| public static final byte[] | |
| public static final byte[] | |
| public static final byte[] | |
| public static final byte[] | |
| public static final String | |
| public static final String | |
| private static final ThreadLocal | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final ThreadLocal | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static byte[] | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final byte[] | |
| public static byte[] | |
| public static final boolean | Returns: true if "equivalent"MY adhoc criteria: two chunks are "equivalent" ("practically equal") 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) Notice that the use of this is optional, and that the PNG standard allows Text chunks that have same key |
| public static List | filterList(final List<PngChunk> target, final ChunkPredicate predicateKeep)
Returns only the chunks that "match" the predicate See also trimList() |
| public static Deflater | getDeflater()
thread-local deflater, just reset : this should be only used for short individual chunks decompression |
| public static Inflater | getInflater()
thread-local inflater, just reset : this should be only used for short individual chunks compression |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static int | |
| public static boolean | Returns: true/falseDecides if a chunk should be loaded, according to a ChunkLoadBehaviour |
| private static void | shovelInToOut(final InputStream in, final OutputStream out)
Shovels all data from an input stream to an output stream. |
| public static byte[] | |
| public static byte[] | |
| public static String | |
| public static String | toString(final byte[] x, final int offset, final int len)
Converts to String using Latin1 (ISO-8859-1) |
| public static String | |
| public static String | |
| public static int | trimList(final List<PngChunk> target, final ChunkPredicate predicateRemove)
Remove (in place) the chunks that "match" the predicate See also filterList |
| b_IDAT | back to summary |
|---|---|
| public static final byte[] b_IDAT | |
| b_IEND | back to summary |
|---|---|
| public static final byte[] b_IEND | |
| b_IHDR | back to summary |
|---|---|
| public static final byte[] b_IHDR | |
| b_PLTE | back to summary |
|---|---|
| public static final byte[] b_PLTE | |
| bKGD | back to summary |
|---|---|
| public static final String bKGD | |
| cHRM | back to summary |
|---|---|
| public static final String cHRM | |
| deflaterProvider | back to summary |
|---|---|
| private static final ThreadLocal<Deflater> deflaterProvider | |
| gAMA | back to summary |
|---|---|
| public static final String gAMA | |
| hIST | back to summary |
|---|---|
| public static final String hIST | |
| iCCP | back to summary |
|---|---|
| public static final String iCCP | |
| IDAT | back to summary |
|---|---|
| public static final String IDAT | |
| IEND | back to summary |
|---|---|
| public static final String IEND | |
| IHDR | back to summary |
|---|---|
| public static final String IHDR | |
| inflaterProvider | back to summary |
|---|---|
| private static final ThreadLocal<Inflater> inflaterProvider | |
| iTXt | back to summary |
|---|---|
| public static final String iTXt | |
| pHYs | back to summary |
|---|---|
| public static final String pHYs | |
| PLTE | back to summary |
|---|---|
| public static final String PLTE | |
| sBIT | back to summary |
|---|---|
| public static final String sBIT | |
| sPLT | back to summary |
|---|---|
| public static final String sPLT | |
| sRGB | back to summary |
|---|---|
| public static final String sRGB | |
| tEXt | back to summary |
|---|---|
| public static final String tEXt | |
| tIME | back to summary |
|---|---|
| public static final String tIME | |
| tmpbuffer | back to summary |
|---|---|
| private static byte[] tmpbuffer | |
| tRNS | back to summary |
|---|---|
| public static final String tRNS | |
| zTXt | back to summary |
|---|---|
| public static final String zTXt | |
| ChunkHelper | back to summary |
|---|---|
| public ChunkHelper() | |
| compressBytes | back to summary |
|---|---|
| public static final byte[] compressBytes(final byte[] ori, final boolean compress) | |
| compressBytes | back to summary |
|---|---|
| public static byte[] compressBytes(final byte[] ori, final int offset, final int len, final boolean compress) | |
| equivalent | back to summary |
|---|---|
| public static final boolean equivalent(final PngChunk c1, final PngChunk c2) MY adhoc criteria: two chunks are "equivalent" ("practically equal") 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) Notice that the use of this is optional, and that the PNG standard allows Text chunks that have same key
| |
| filterList | back to summary |
|---|---|
| public static List Returns only the chunks that "match" the predicate See also trimList() | |
| getDeflater | back to summary |
|---|---|
| public static Deflater getDeflater() thread-local deflater, just reset : this should be only used for short individual chunks decompression | |
| getInflater | back to summary |
|---|---|
| public static Inflater getInflater() thread-local inflater, just reset : this should be only used for short individual chunks compression | |
| isCritical | back to summary |
|---|---|
| public static boolean isCritical(final String id) critical chunk : first letter is uppercase | |
| isPublic | back to summary |
|---|---|
| public static boolean isPublic(final String id) public chunk: second letter is uppercase | |
| isSafeToCopy | back to summary |
|---|---|
| public static boolean isSafeToCopy(final String id) Safe to copy chunk: fourth letter is lower case | |
| isText | back to summary |
|---|---|
| public static boolean isText(final PngChunk c) | |
| isUnknown | back to summary |
|---|---|
| public static boolean isUnknown(final PngChunk c) "Unknown" just means that our chunk factory (even when it has been augmented by client code) did not recognize its id | |
| maskMatch | back to summary |
|---|---|
| public static boolean maskMatch(final int v, final int mask) | |
| posNullByte | back to summary |
|---|---|
| public static int posNullByte(final byte[] b) Finds position of null byte in array
| |
| shouldLoad | back to summary |
|---|---|
| public static boolean shouldLoad(final String id, final ChunkLoadBehaviour behav) Decides if a chunk should be loaded, according to a ChunkLoadBehaviour
| |
| shovelInToOut | back to summary |
|---|---|
| private static void shovelInToOut(final InputStream in, final OutputStream out) throws IOException Shovels all data from an input stream to an output stream. | |
| toBytes | back to summary |
|---|---|
| public static byte[] toBytes(final String x) Converts to bytes using Latin1 (ISO-8859-1) | |
| toBytesUTF8 | back to summary |
|---|---|
| public static byte[] toBytesUTF8(final String x) Converts to bytes using UTF-8 | |
| toString | back to summary |
|---|---|
| public static String toString(final byte[] x) Converts to String using Latin1 (ISO-8859-1) | |
| toString | back to summary |
|---|---|
| public static String toString(final byte[] x, final int offset, final int len) Converts to String using Latin1 (ISO-8859-1) | |
| toStringUTF8 | back to summary |
|---|---|
| public static String toStringUTF8(final byte[] x) Converts to string using UTF-8 | |
| toStringUTF8 | back to summary |
|---|---|
| public static String toStringUTF8(final byte[] x, final int offset, final int len) Converts to string using UTF-8 | |
| trimList | back to summary |
|---|---|
| public static int trimList(final List<PngChunk> target, final ChunkPredicate predicateRemove) Remove (in place) the chunks that "match" the predicate See also filterList | |