e-CryptIt Engine - Compression Xojo Plugin

ZStreamReader Class (console safe)

To handle zip decompression (.gz format) on files or streams then use the ZStreamReader class.

Object
   ZStreamReader

class ZStreamReader implements

IBinaryStreamReader

IBlockReader

Constructors

ZStreamReaderOne of 4 constructors for the ZStreamReader.
ZStreamReaderOne of 4 constructors for the ZStreamReader.
ZStreamReaderOne of 4 constructors for the ZStreamReader.
ZStreamReaderOne of 4 constructors for the ZStreamReader.

Properties

BufferThis property can be used to obtain or set the MemoryBlock that is used for a shared memory block based decompression.
CompressedBytesProcessedThis property returns how many bytes have been read and processed from the original uncompressed file.
CompressedBytesReadThis property returns how many bytes have been read from the original uncompressed file.
PositionReturns the cursor position within the stream.

Methods

BindTo bind the Encoder to a IBlockWriter stream then use the Bind method. To do such binding then let both streams share the same memory block and then call the Bind method.
CloseTo close the stream. The stream is also closed when it is deconstructed.
EOFThis property is used when decoding to determine if the end of the stream is reached.
LastErrorThis property returns the error code for the last operation. Zero means no error, another value means a file error. The code used by the File Manager, see Inside Macintosh at the Apple Website.
shared PluginVersionReturns the version number of the plugin.
ProcessBoundBlockUse the ProcessBoundBlock in a loop to stream between two streams that have been bound together with the Bind method.
ReadTo read data from the stream.
ReadBlockCall the ReadBlock method in a loop to let the stream decompress data.
SeekTo move, relatively or absolutely, the cursor in the stream.

Supported Platforms:

  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM