GeezerVison is showing netty.io — Bzip2Encoder (Netty API Reference (4.1.141.Final))
Class Bzip2Encoder
-
-
Constructor Summary
Constructors
Constructor
Description
Creates a new bzip2 encoder with the maximum (900,000 byte) block size.
Creates a new bzip2 encoder with the specified blockSizeMultiplier.
-
Method Summary
Modifier and Type
Method
Description
void
protected void
void
Do nothing by default, sub-classes may override this method.
boolean
Returns true if and only if the end of the compressed stream has been reached.
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Bzip2Encoder
public Bzip2Encoder()
Creates a new bzip2 encoder with the maximum (900,000 byte) block size.
-
Bzip2Encoder
public Bzip2Encoder(int blockSizeMultiplier)
Creates a new bzip2 encoder with the specified blockSizeMultiplier.
- Parameters:
blockSizeMultiplier - The Bzip2 block size as a multiple of 100,000 bytes (minimum 1, maximum 9).
Larger block sizes require more memory for both compression and decompression,
but give better compression ratios. 9 will usually be the best value to use.
-
Method Details
-
-
isClosed
public boolean isClosed()
Returns true if and only if the end of the compressed stream has been reached.
-
close
Close this Bzip2Encoder and so finish the encoding.
The returned ChannelFuture will be notified once the operation completes.
-
close
Close this Bzip2Encoder and so finish the encoding.
The given ChannelFuture will be notified once the operation
completes and will also be returned.
-
-
|