Package loci.formats.in
Class APNGReader.PNGInputStream
java.lang.Object
java.io.InputStream
loci.formats.in.APNGReader.PNGInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
APNGReader
InputStream implementation that stitches together IDAT blocks into
a seamless zlib stream. This allows us to decompress the image data
without reading the entire compressed stream into a byte array.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate Stringprivate intprivate intprivate booleanprivate int -
Constructor Summary
ConstructorsConstructorDescriptionPNGInputStream(String blockType) PNGInputStream(String blockType, int imageNumber) -
Method Summary
Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
currentBlock
private int currentBlock -
blockPointer
private int blockPointer -
blockLength
private int blockLength -
blockType
-
imageNumber
private int imageNumber -
fctlCount
private int fctlCount -
fdatValid
private boolean fdatValid
-
-
Constructor Details
-
PNGInputStream
- Throws:
IOException
-
PNGInputStream
- Throws:
IOException
-
-
Method Details
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
readByte
- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
advanceBlock
- Throws:
IOException
-