| Package | calista.utils |
| Class | public class LZW |
| Inheritance | LZW Object |
| Method | Defined By | ||
|---|---|---|---|
compress(source:String):String [static]
Compresses the specified text. | LZW | ||
decompress(source:String):String [static]
Decompresses the specified text with the LZW algorithm. | LZW | ||
| compress | () | method |
public static function compress(source:String):StringCompresses the specified text.
Example :
import calista.utils.LZW ;
var source:String = "hello world with LZW algorithm" ;
var compress:String = LZW.compress( source ) ;
trace("compress : " + compress) ;
Parameters
source:String |
String |
| decompress | () | method |
public static function decompress(source:String):StringDecompresses the specified text with the LZW algorithm.
Example :
import calista.utils.LZW ;
var source:String = "hello world with LZW algorithm" ;
var compress:String = LZW.compress( source ) ;
trace("compress : " + compress) ; // compress : hello worldąith LZW algćČhm
var decompress:String = LZW.decompress( compress ) ;
trace("decompress : " + decompress) ; // decompress : hello world with LZW algorithm
Parameters
source:String |
String |