Up: ZLib.ZlibWriteStream   [Index]


7.13.1 ZLib.ZlibWriteStream: streaming

close

Finish the deflated output to the destination stream using Z_FINISH. The destination stream is closed, which implies flushing.

contents

Finish the deflated output to the destination stream using Z_FINISH and return the deflated data (requires the destination stream to support #contents).

finish

Finish the deflated output to the destination stream using Z_FINISH. The destination stream is not flushed.

flush

Flush the deflated output to the destination stream, and flush the destination stream.

flushBuffer

Flush the deflated output to the destination stream.

flushDictionary

Flush the deflated output to the destination stream using Z_FULL_FLUSH, and flush the destination stream.

next: n putAll: aCollection startingAt: pos

Put n characters or bytes of aCollection, starting at the pos-th, in the deflation buffer.

nextPut: aByte

Append a character or byte (depending on whether the destination stream works on a ByteArray or String) to the deflation buffer.

partialFlush

Flush the deflated output to the destination stream using Z_PARTIAL_FLUSH, and flush the destination stream.

position

Answer the number of compressed bytes written.

readStream

Finish the deflated output to the destination stream using Z_FINISH and return a ReadStream on the deflated data (requires the destination stream to support #readStream).

syncFlush

Flush the deflated output to the destination stream using Z_SYNC_FLUSH, and flush the destination stream. Note that this includes the four bytes 0/0/255/255 at the end of the flush.


Up: ZLib.ZlibWriteStream   [Index]