Kaya 0.4.4 reference for Compress::compressString

List of functions and data types in Compress

String compressString(String instr)

Arguments

Usage

Compress a string using zlib and returned a base64-encoded compressed string. If compression fails, a CompressionFailed Exception will be thrown. Note that because base64-encoding increases the space required, if the compression factor is small, the compressed string may be larger than the original! In this case converting the string to Binary form and using compressBinary may be better.

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya