Client code should not normally use this class
| Modifier and Type | Field and Description |
|---|---|
| public static final Charset | charsetLatin1
Default charset, used internally by PNG for several things |
| public static final Charset | charsetUTF8
UTF-8 is only used for some chunks |
| private static final ThreadLocal | |
| pack-priv static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| pack-priv static final int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static CRC32 | |
| public static final long | |
| public static byte[] | |
| public static final void | |
| public static double | |
| public static void | |
| public static int | |
| public static void | readBytes(final InputStream is, final byte[] b, final int offset, final int len)
guaranteed to read exactly len bytes. |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static void | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void |
| charsetLatin1 | back to summary |
|---|---|
| public static final Charset charsetLatin1 Default charset, used internally by PNG for several things | |
| charsetUTF8 | back to summary |
|---|---|
| public static final Charset charsetUTF8 UTF-8 is only used for some chunks | |
| crcProvider | back to summary |
|---|---|
| private static final ThreadLocal<CRC32> crcProvider | |
| DEBUG | back to summary |
|---|---|
| pack-priv static final boolean DEBUG | |
| PngHelperInternal | back to summary |
|---|---|
| public PngHelperInternal() | |
| doubleToInt100000 | back to summary |
|---|---|
| public static int doubleToInt100000(final double d) | |
| filterPaethPredictor | back to summary |
|---|---|
| pack-priv static final int filterPaethPredictor(final int a, final int b, final int c) | |
| filterRowAverage | back to summary |
|---|---|
| public static int filterRowAverage(final int r, final int left, final int up) | |
| filterRowNone | back to summary |
|---|---|
| public static int filterRowNone(final int r) | |
| filterRowPaeth | back to summary |
|---|---|
| public static int filterRowPaeth(final int r, final int left, final int up, final int upleft) | |
| filterRowSub | back to summary |
|---|---|
| public static int filterRowSub(final int r, final int left) | |
| filterRowUp | back to summary |
|---|---|
| public static int filterRowUp(final int r, final int up) | |
| getCRC | back to summary |
|---|---|
| public static CRC32 getCRC() thread-singleton crc engine | |
| getCrctestVal | back to summary |
|---|---|
| public static final long getCrctestVal(final PngReader pngr) | |
| getPngIdSignature | back to summary |
|---|---|
| public static byte[] getPngIdSignature() PNG magic bytes | |
| initCrcForTests | back to summary |
|---|---|
| public static final void initCrcForTests(final PngReader pngr) | |
| intToDouble100000 | back to summary |
|---|---|
| public static double intToDouble100000(final int i) | |
| logdebug | back to summary |
|---|---|
| public static void logdebug(final String msg) | |
| readByte | back to summary |
|---|---|
| public static int readByte(final InputStream is) | |
| readBytes | back to summary |
|---|---|
| public static void readBytes(final InputStream is, final byte[] b, final int offset, final int len) guaranteed to read exactly len bytes. throws error if it can't | |
| readInt1fromByte | back to summary |
|---|---|
| public static int readInt1fromByte(final byte[] b, final int offset) | |
| readInt2 | back to summary |
|---|---|
| public static int readInt2(final InputStream is) -1 if eof PNG uses "network byte order" | |
| readInt2fromBytes | back to summary |
|---|---|
| public static int readInt2fromBytes(final byte[] b, final int offset) | |
| readInt4 | back to summary |
|---|---|
| public static int readInt4(final InputStream is) -1 if eof | |
| readInt4fromBytes | back to summary |
|---|---|
| public static int readInt4fromBytes(final byte[] b, final int offset) | |
| skipBytes | back to summary |
|---|---|
| public static void skipBytes(final InputStream is, long len) | |
| unfilterRowAverage | back to summary |
|---|---|
| public static int unfilterRowAverage(final int r, final int left, final int up) | |
| unfilterRowNone | back to summary |
|---|---|
| public static int unfilterRowNone(final int r) | |
| unfilterRowPaeth | back to summary |
|---|---|
| public static int unfilterRowPaeth(final int r, final int left, final int up, final int upleft) | |
| unfilterRowSub | back to summary |
|---|---|
| public static int unfilterRowSub(final int r, final int left) | |
| unfilterRowUp | back to summary |
|---|---|
| public static int unfilterRowUp(final int r, final int up) | |
| writeByte | back to summary |
|---|---|
| public static void writeByte(final OutputStream os, final byte b) | |
| writeBytes | back to summary |
|---|---|
| public static void writeBytes(final OutputStream os, final byte[] b) | |
| writeBytes | back to summary |
|---|---|
| public static void writeBytes(final OutputStream os, final byte[] b, final int offset, final int n) | |
| writeInt2 | back to summary |
|---|---|
| public static void writeInt2(final OutputStream os, final int n) | |
| writeInt2tobytes | back to summary |
|---|---|
| public static void writeInt2tobytes(final int n, final byte[] b, final int offset) | |
| writeInt4 | back to summary |
|---|---|
| public static void writeInt4(final OutputStream os, final int n) | |
| writeInt4tobytes | back to summary |
|---|---|
| public static void writeInt4tobytes(final int n, final byte[] b, final int offset) | |