e-CryptIt Engine Xojo and Real Studio Plugin

ZStream Class (console safe)

To handle zip compression and decompression on files (.gz format).

Note: This class has been replaced by the ZStreamWriter and the ZStreamReader classes. This class is provided here because there are still some 3rd party kits that use this class. If you are developing a new product and using REALbasic 5.5 or later then it is highly recommended that you use the new and more advanced classes.

Object
   ZStream

class ZStream implements

IStreamWriter

IStreamReader

Constructors

ZStreamOne of two constructors for the ZStream class.
ZStreamOne of two constructors for the ZStream class.

Properties

ErrorValue (console safe) This 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.
Position (console safe) Returns the cursor position within the stream.

Methods

Close (console safe) To close the stream. The stream is also closed when it is deconstructed.
EOF (console safe) This property is used when decoding to determine if the end of the stream is reached.
LastError (console safe) This 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.
Read (console safe) To read data from the stream.
Seek (console safe) To move, relatively or absolutely, the cursor in the stream.
Write (console safe) To write the data into the stream.

Supported Platforms:

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