CkUnixCompress C++ Class Reference (Visual C++)

CkUnixCompress

UNIX (.Z) compression component.

Properties

void LastErrorHtml(CkString &str);

Error information in HTML format for the last method called.

void LastErrorText(CkString &str);

Error information in plain-text format for the last method called.

void LastErrorXml(CkString &str);

Error information in XML format for the last method called.

bool get_Utf8(void) const;
void put_Utf8(bool b);

When set to true, all "const char *" arguments are expected to be utf-8 strings. If set to false, the "const char *" arguments are expected to be ANSI strings.

Methods

bool CompressFile(const char * inFilename, const char * outFilename);

Compresses a file to create a UNIX compressed file (.Z). This compression uses the LZW (Lempel-Ziv-Welch) compression algorithm.

Returns true for success, false for failure.

bool CompressFileToMem(const char * inFilename, CkByteData & db);

Unix compresses a file to an in-memory image of a .Z file. (This compression uses the LZW (Lempel-Ziv-Welch) compression algorithm.)

Returns false on failure.

bool CompressMemToFile(const CkByteData & db, const char * outFilename);

Unix compresses and creates a .Z file from in-memory data. (This compression uses the LZW (Lempel-Ziv-Welch) compression algorithm.)

Returns true for success, false for failure.

bool CompressMemory(const CkByteData & dbIn, CkByteData & dbOut);

Compresses in-memory data to an in-memory image of a .Z file. (This compression uses the LZW (Lempel-Ziv-Welch) compression algorithm.)

bool IsUnlocked();

Returns true if the component has been unlocked. (For ActiveX, returns 1 if unlocked.)

bool SaveLastError(const char * filename);

Saves the last error information to an XML formatted file.

bool UnTarZ(const char * zFilename, const char * destDir, bool bNoAbsolute);

Unpacks a .tar.Z file. The decompress and untar occur in streaming mode. There are no temporary files and the memory footprint is constant (and small) while untarring.

Returns true for success, false for failure.

bool UncompressFile(const char * inFilename, const char * outFilename);

Uncompresses a .Z file. (This compression uses the LZW (Lempel-Ziv-Welch) compression algorithm.)

Returns true for success, false for failure.

bool UncompressFileToMem(const char * inFilename, CkByteData & db);

Uncompresses a .Z file directly to memory. (This compression uses the LZW (Lempel-Ziv-Welch) compression algorithm.)

Returns false on failure.

bool UncompressMemToFile(const CkByteData & db, const char * outFilename);

Uncompresses from an in-memory image of a .Z file to a file. (This compression uses the LZW (Lempel-Ziv-Welch) compression algorithm.)

Returns true for success, false for failure.

bool UncompressMemory(const CkByteData & dbIn, CkByteData & dbOut);

Uncompresses from an in-memory image of a .Z file directly into memory. (This compression uses the LZW (Lempel-Ziv-Welch) compression algorithm.)

Returns false on failure.

bool UnlockComponent(const char * unlockCode);

Unlocks the component allowing for the full functionality to be used.

Returns true for success, false for failure.

const char * lastErrorHtml();

Error information in HTML format for the last method called.

const char * lastErrorText();

Error information in plain-text format for the last method called.

const char * lastErrorXml();

Error information in XML format for the last method called.