public class PNGIDATChunkInputStream extends InputStream
Once all IDAT chunks have been read, the read()
methods will
return -1
and isFoundAllIDATChunks()
true
. Once isFoundAllIDATChunks()
returns
true
, the length and type of the first chunk after the last
IDAT chunk may be found by calling getNextChunkLength()
and
getNextChunkType()
, respectively. The source stream will at
this point be positioned at the first byte of the data field after the last
IDAT chunk (which could be the first byte of the CRC code if the length is
zero).
Modifier and Type | Method and Description |
---|---|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
available, close, mark, markSupported, read, reset, skip
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
Copyright © 2020. All rights reserved.