Class InflaterReadableChunkChannel
java.lang.Object
com.e1c.g5.v8.internal.fastzip.chunk.InflaterReadableChunkChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel
A channel which reads data from a sequence of chunks provided by
IChunkSupplier and decompresses it
with Inflater.-
Constructor Summary
ConstructorsConstructorDescriptionInflaterReadableChunkChannel(IChunkSupplier chunkSupplier) Creates a new inflater readable chunk channel. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()final booleanisOpen()intread(ByteBuffer dst)
-
Constructor Details
-
InflaterReadableChunkChannel
Creates a new inflater readable chunk channel.- Parameters:
chunkSupplier- the chunk supplier, cannot benull
-
-
Method Details
-
read
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
isOpen
public final boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-