Class WebPImageParser.ChunksReader
java.lang.Object
org.apache.commons.imaging.formats.webp.WebPImageParser.ChunksReader
- All Implemented Interfaces:
Closeable, AutoCloseable
- Enclosing class:
WebPImageParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WebPChunkType[](package private) final intprivate booleanprivate final InputStreamprivate int -
Constructor Summary
ConstructorsConstructorDescriptionChunksReader(ByteSource byteSource) ChunksReader(ByteSource byteSource, WebPChunkType... chunkTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()(package private) int(package private) AbstractWebPChunk
-
Field Details
-
is
-
chunkTypes
-
sizeCount
private int sizeCount -
firstChunk
private boolean firstChunk -
fileSize
final int fileSize
-
-
Constructor Details
-
ChunksReader
ChunksReader(ByteSource byteSource) throws IOException, ImagingException - Throws:
IOExceptionImagingException
-
ChunksReader
ChunksReader(ByteSource byteSource, WebPChunkType... chunkTypes) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getOffset
int getOffset() -
readChunk
- Throws:
ImagingExceptionIOException
-