Class: LZW

jrt.LZW()

LZW compression/decompression algorithm. The resulting compressed strings are suitable for local storage (they are valid UTF-16 strings).

Constructor

new LZW()

Methods

(static) compress(str) → {string}

Compresses the specified uncompressed string.

Parameters:
Name Type Description
str string
Returns:
Type
string

(static) decompress(str) → {string}

Decompresses the specified compressed string.

Parameters:
Name Type Description
str string
Returns:
Type
string