public class BrotliOutputStream extends OutputStream
| Constructor and Description |
|---|
BrotliOutputStream(OutputStream destination)
Creates a BrotliOutputStream.
|
BrotliOutputStream(OutputStream destination,
Encoder.Parameters params)
Creates a BrotliOutputStream.
|
BrotliOutputStream(OutputStream destination,
Encoder.Parameters params,
int bufferSize)
Creates a BrotliOutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachDictionary(PreparedDictionary dictionary) |
void |
close() |
void |
flush() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public BrotliOutputStream(OutputStream destination, Encoder.Parameters params, int bufferSize) throws IOException
destination - underlying destinationparams - encoding settingsbufferSize - intermediate buffer sizeIOException - If any failure during initializationpublic BrotliOutputStream(OutputStream destination, Encoder.Parameters params) throws IOException
destination - underlying destinationparams - encoding settingsIOException - If any failure during initializationpublic BrotliOutputStream(OutputStream destination) throws IOException
destination - underlying destinationIOException - If any failure during initializationpublic void attachDictionary(PreparedDictionary dictionary) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionCopyright © 2024. All rights reserved.