Packageorg.igniterealtime.xiff.util
Classpublic class Zlib
InheritanceZlib Inheritance Object
Implements ICompressor

Compress the given ByteArrays by using the as3zlib library.

See also

http://code.google.com/p/as3zlib/


Public Methods
 MethodDefined By
  
Stream Compression - Zlib
Zlib
  
clear():void
Zlib
  
compress(data:ByteArray):ByteArray
Compress (deflate) the given ByteArray.
Zlib
  
uncompress(data:ByteArray):ByteArray
Uncompress (inflate) the given ByteArray.
Zlib
Constructor Detail
Zlib()Constructor
public function Zlib()

Stream Compression - Zlib

Method Detail
clear()method
public function clear():void

compress()method 
public function compress(data:ByteArray):ByteArray

Compress (deflate) the given ByteArray.

Parameters

data:ByteArray

Returns
ByteArray — Compressed data
uncompress()method 
public function uncompress(data:ByteArray):ByteArray

Uncompress (inflate) the given ByteArray.

Parameters

data:ByteArray

Returns
ByteArray — Uncompressed data