public class BrotliEncoderChannel extends Encoder implements WritableByteChannel
Encoder.Mode, Encoder.Parameters| Constructor and Description |
|---|
BrotliEncoderChannel(WritableByteChannel destination)
Creates a BrotliEncoderChannel
|
BrotliEncoderChannel(WritableByteChannel destination,
Encoder.Parameters params)
Creates a BrotliEncoderChannel
|
BrotliEncoderChannel(WritableByteChannel destination,
Encoder.Parameters params,
int bufferSize)
Creates a BrotliEncoderChannel
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachDictionary(PreparedDictionary dictionary) |
void |
close() |
boolean |
isOpen() |
int |
write(ByteBuffer src) |
public BrotliEncoderChannel(WritableByteChannel destination, Encoder.Parameters params, int bufferSize) throws IOException
destination - underlying destinationparams - encoding settingsbufferSize - intermediate buffer sizeIOException - If any failure during initializationpublic BrotliEncoderChannel(WritableByteChannel destination, Encoder.Parameters params) throws IOException
destination - underlying destinationparams - encoding settingsIOException - If any failure during initializationpublic BrotliEncoderChannel(WritableByteChannel destination) throws IOException
destination - underlying destinationIOException - If any failure during initializationpublic void attachDictionary(PreparedDictionary dictionary) throws IOException
attachDictionary in class EncoderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelIOExceptionCopyright © 2024. All rights reserved.