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 void
close()
final boolean
isOpen()
int
read
(ByteBuffer dst)
-
Constructor Details
-
InflaterReadableChunkChannel
Creates a new inflater readable chunk channel.- Parameters:
chunkSupplier
- the chunk supplier, cannot benull
-
-
Method Details
-
read
- Specified by:
read
in interfaceReadableByteChannel
- Throws:
IOException
-
isOpen
public final boolean isOpen() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-