com.smaxe.uv.client
Class ByteArrayUtils

java.lang.Object
  extended by com.smaxe.uv.client.ByteArrayUtils

public final class ByteArrayUtils
extends java.lang.Object

ByteArrayUtils - ByteArray utility methods.

Version:
1.5.12
Author:
Andrei Sochirca
See Also:
JUV RTMP Client

Method Summary
static ByteArray compress(ByteArray array)
          Compresses array using zlib.
static ByteArray uncompress(ByteArray array)
          Decompresses array using zlib.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compress

public static ByteArray compress(ByteArray array)
                          throws java.lang.Exception
Compresses array using zlib.

Parameters:
array -
Returns:
zlib compressed array
Throws:
java.lang.Exception - if an exception occurred

uncompress

public static ByteArray uncompress(ByteArray array)
                            throws java.lang.Exception
Decompresses array using zlib.

Parameters:
array -
Returns:
zlib decompressed array
Throws:
java.lang.Exception - if an exception occurred