BZip2Encoder class
Compress data using the BZip2 format. Derived from libbzip2 (http://www.bzip.org).
Constructors
Properties
- bw ↔ Bz2BitWriter
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- input ↔ InputStream
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addByte(
int byte) → bool - Adds a byte to the current block. Returns true if block is full, meaning endBlock must be called before adding any more data
-
beginStream(
OutputStream output, {int blockSize100k = 9}) → void - Instead of consuming an InputStream, BZip2ChunkedEncoder drives this method directly alongside addByte, endBlock, and endStream. This guarantees identical output to encodeStream
-
encode(
List< int> bytes) → List<int> - Alias for encodeBytes, kept for backwards compatibility.
-
encodeBytes(
List< int> data, {int blockSize100k = 9}) → Uint8List -
encodeStream(
InputStream input, OutputStream output, {int blockSize100k = 9}) → bool -
endBlock(
) → bool - Compresses the block and updates the overall stream checksum. We skip empty blocks to avoid altering and breaking the combined CRC
-
endStream(
) → void - The EOF marker, the combined stream checksum, and padding to finish the byte
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited