Class WebPImageParser.ChunksReader
- java.lang.Object
-
- org.apache.commons.imaging.formats.webp.WebPImageParser.ChunksReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- WebPImageParser
private static final class WebPImageParser.ChunksReader extends java.lang.Object implements java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description private WebPChunkType[]chunkTypes(package private) intfileSizeprivate booleanfirstChunkprivate java.io.InputStreamisprivate intsizeCount
-
Constructor Summary
Constructors Constructor Description ChunksReader(ByteSource byteSource)ChunksReader(ByteSource byteSource, WebPChunkType... chunkTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()(package private) intgetOffset()(package private) AbstractWebPChunkreadChunk()
-
-
-
Field Detail
-
is
private final java.io.InputStream is
-
chunkTypes
private final WebPChunkType[] chunkTypes
-
sizeCount
private int sizeCount
-
firstChunk
private boolean firstChunk
-
fileSize
final int fileSize
-
-
Constructor Detail
-
ChunksReader
ChunksReader(ByteSource byteSource) throws java.io.IOException, ImagingException
- Throws:
java.io.IOExceptionImagingException
-
ChunksReader
ChunksReader(ByteSource byteSource, WebPChunkType... chunkTypes) throws ImagingException, java.io.IOException
- Throws:
ImagingExceptionjava.io.IOException
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
getOffset
int getOffset()
-
readChunk
AbstractWebPChunk readChunk() throws ImagingException, java.io.IOException
- Throws:
ImagingExceptionjava.io.IOException
-
-