| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final CRC32 | |
| private boolean | |
| pack-priv List | |
| private final byte[] | |
| private final InputStream | |
| private int | |
| private long | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | PngIDatChunkInputStream(final InputStream iStream, final int lenFirstChunk, final long offset)
Constructor must be called just after reading length and id of first IDAT chunk |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| pack-priv void | |
| private void | |
| pack-priv void | forceChunkEnd()
sometimes last row read does not fully consumes the chunk here we read the reamaing dummy bytes |
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv long | |
| pack-priv boolean | |
| public int | read(final byte[]
the buffer into which the data is read. b, final int the start offset in array off, final int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. |
| public int | read(final byte[]
the buffer into which the data is read. b)Overrides java. b.
|
| public int | read()
Implements abstract java. |
| checkCrc | back to summary |
|---|---|
| private boolean checkCrc | |
| crcEngine | back to summary |
|---|---|
| private final CRC32 crcEngine | |
| ended | back to summary |
|---|---|
| private boolean ended | |
| foundChunksInfo | back to summary |
|---|---|
| pack-priv List<PngIDatChunkInputStream. | |
| idLastChunk | back to summary |
|---|---|
| private final byte[] idLastChunk | |
| inputStream | back to summary |
|---|---|
| private final InputStream inputStream | |
| lenLastChunk | back to summary |
|---|---|
| private int lenLastChunk | |
| offset | back to summary |
|---|---|
| private long offset | |
| toReadThisChunk | back to summary |
|---|---|
| private int toReadThisChunk | |
| PngIDatChunkInputStream | back to summary |
|---|---|
| pack-priv PngIDatChunkInputStream(final InputStream iStream, final int lenFirstChunk, final long offset) Constructor must be called just after reading length and id of first IDAT chunk | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. does NOT close the associated stream!
| |
| disableCrcCheck | back to summary |
|---|---|
| pack-priv void disableCrcCheck() Disables CRC checking. This can make reading faster | |
| endChunkGoForNext | back to summary |
|---|---|
| private void endChunkGoForNext() | |
| forceChunkEnd | back to summary |
|---|---|
| pack-priv void forceChunkEnd() sometimes last row read does not fully consumes the chunk here we read the reamaing dummy bytes | |
| getIdLastChunk | back to summary |
|---|---|
| pack-priv byte[] getIdLastChunk() | |
| getLenLastChunk | back to summary |
|---|---|
| pack-priv int getLenLastChunk() | |
| getOffset | back to summary |
|---|---|
| pack-priv long getOffset() | |
| isEnded | back to summary |
|---|---|
| pack-priv boolean isEnded() | |
| read | back to summary |
|---|---|
| public int read(final byte[] b, final int off, final int len) throws IOException Overrides java. This can return less than len, but never 0 Returns -1 if "pseudo file" ended prematurely. That is our error.
| |
| read | back to summary |
|---|---|
| public int read(final byte[] b) throws IOException Overrides java. Doc from java. Reads some number of bytes from the input stream and stores them into
the buffer array If the length of The first byte read is stored into element
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| Access | Constructor and Description |
|---|---|
| private |
| IdatChunkInfo | back to summary |
|---|---|
| private IdatChunkInfo(final int len, final long offset) | |