Packageorg.igniterealtime.xiff.util
Classpublic class ZlibNative
InheritanceZlibNative Inheritance Object
Implements ICompressor

Compress the given ByteArrays by using the Flash Player 10 native CompressionAlgorithm.ZLIB.

See also

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/CompressionAlgorithm.html


Public Methods
 MethodDefined By
  
Stream Compression - Native DEFLATE All multi-byte numbers in the format described in RFC 1950 are stored with the MOST-significant byte first (at the lower memory address).
ZlibNative
  
clear():void
ZlibNative
  
compress(data:ByteArray):ByteArray
Compress (deflate) the given ByteArray.
ZlibNative
  
uncompress(data:ByteArray):ByteArray
Uncompress (inflate) the given ByteArray.
ZlibNative
Constructor Detail
ZlibNative()Constructor
public function ZlibNative()

Stream Compression - Native DEFLATE

All multi-byte numbers in the format described in RFC 1950 are stored with the MOST-significant byte first (at the lower memory address).

See also

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

See also

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

Uncompress (inflate) the given ByteArray.

Parameters

data:ByteArray

Returns
ByteArray — Uncompressed data

See also