public class BrotliDecoderChannel extends Decoder implements ReadableByteChannel
| Constructor and Description |
|---|
BrotliDecoderChannel(ReadableByteChannel source)
Creates a BrotliDecoderChannel.
|
BrotliDecoderChannel(ReadableByteChannel source,
int bufferSize)
Creates a BrotliDecoderChannel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachDictionary(ByteBuffer dictionary) |
void |
close() |
boolean |
isOpen() |
int |
read(ByteBuffer dst) |
decompress, decompress, enableEagerOutputpublic BrotliDecoderChannel(ReadableByteChannel source) throws IOException
source - underlying sourceIOException - If any failure during initializationpublic BrotliDecoderChannel(ReadableByteChannel source, int bufferSize) throws IOException
source - underlying sourcebufferSize - intermediate buffer sizeIOException - If any failure during initializationpublic void attachDictionary(ByteBuffer dictionary) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelIOExceptionCopyright © 2024. All rights reserved.