| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final Encoder. | |
| private BrotliCompressor. |
| Access | Constructor and Description |
|---|---|
| private | BrotliCompressor(Encoder.
Encoder. InstanceCreate a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Buffer | compress(Buffer
the input, BufferAllocator Buffer that contains the data to be compressed.the allocator)BufferAllocator that is used to allocate a new buffer (if needed) to write the
compressed bytes too.Implements io. Buffer and compress into a new Buffer that will be
allocated (if needed) from the BufferAllocator.
|
| public Buffer | finish(BufferAllocator allocator)
Implements io. |
| public boolean | isClosed()
Implements io. true if the decompressor was closed, false otherwise.
|
| public boolean | isFinished()
Implements io. true if the compressor was finished or closed.
|
| public static Supplier | Returns: the factory.Encoder. InstanceCreate a new |
| public static Supplier | Returns: the factory.BrotliOptions to use.Create a new |
| public static Supplier | Returns: the factory.Create a new |
| parameters | back to summary |
|---|---|
| private final Encoder. | |
| state | back to summary |
|---|---|
| private BrotliCompressor. | |
| BrotliCompressor | back to summary |
|---|---|
| private BrotliCompressor(Encoder. Create a new
| |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. #
Close the compressor. After this method was called
| |
| compress | back to summary |
|---|---|
| public Buffer compress(Buffer input, BufferAllocator allocator) throws CompressionException Implements io. Doc from io. This method will read from the input
| |
| finish | back to summary |
|---|---|
| public Buffer finish(BufferAllocator allocator) Implements io. Doc from io. By calling this method we signal that the compression stream is marked as finish. The returned | |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements io. Doc from io. Return
| |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() Implements io. Doc from io. Returns
| |
| newFactory | back to summary |
|---|---|
| public static Supplier Create a new
| |
| newFactory | back to summary |
|---|---|
| public static Supplier Create a new
| |
| newFactory | back to summary |
|---|---|
| public static Supplier Create a new
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final BrotliCompressor. | |
| public static final BrotliCompressor. | |
| public static final BrotliCompressor. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BrotliCompressor. | |
| public static BrotliCompressor. |
| CLOSED | back to summary |
|---|---|
| public static final BrotliCompressor. | |
| FINISHED | back to summary |
|---|---|
| public static final BrotliCompressor. | |
| PROCESSING | back to summary |
|---|---|
| public static final BrotliCompressor. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static BrotliCompressor. | |
| values | back to summary |
|---|---|
| public static BrotliCompressor. | |