e-CryptIt Engine Xojo Plugin - Encodings Xojo Plugin

UUCoderStream Class (console safe)

To handle UUEncoding and UUDecoding.

Note
The UUCoderStream has internal buffers of about 14 Kb, so it will need at least 14 Kb + ~4 Kb of free memory to construct the class.

Object
   UUCoderStream

class UUCoderStream

Constructors

UUCoderStreamOne of 3 constructors for the UUCoderStream class.
UUCoderStreamOne of 3 constructors for the UUCoderStream class.
UUCoderStreamOne of 3 constructors for the UUCoderStream class.

Properties

EOFThis property is used when decoding to determine if the end of the stream is reached.
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.
FileNameThis property contains the original name of the file that is being decoded right after the stream was constructed. When in Encoding mode then this property only contains the name that was passed in the constructor.

Methods

CloseTo close the stream and flush all buffers. The stream will do this by itself if it has not been closed when deconstructed. If closing, or any part of the finishing process was not successful, then the ErrorValue property of the class will contain a non-zero value.
ReadThe method to use to read data from a stream in decoding mode. The stream will evaluate the data size to read for you according to its internal buffers. If reading was not successful then the ErrorValue property of the class will contain a non-zero value.
SetDecodedFilePermissionsUse this method to restore unix permissions of a decoded file. This method should be used right after the close method is called on the stream, right after decoding a file. This method does nothing in encoding mode, and it does nothing if the stream has not been closed when in decoding mode.
WriteThe method to use to add data to a stream in encoding mode. If writing was not successful then the ErrorValue property of the class will contain a non-zero value.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS