e-CryptIt Engine REALbasic Plugin

ZStream Class

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 prowided 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 reccomended that you use the new and more advanched 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

ErrorValueThis 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

Methods

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.
ReadTo read data from the stream.
SeekTo move, relatively or absolutely, the cursor in the stream.
WriteTo write the data into the stream.

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86