com.tensegrity.generic.util
Class CompressionUtil

java.lang.Object
  extended bycom.tensegrity.generic.util.CompressionUtil

public class CompressionUtil
extends java.lang.Object

Utility class for compression and decompression of data

Version:
$Id: CompressionUtil.java,v 1.5 2003/11/18 15:40:33 AndreasEbbert Exp $
Author:
BurkhardWick

Method Summary
static byte[] gzipCompressBytes(byte[] sourceData)
          Compresses the given byte array using the GZIP method.
static byte[] gzipDecompressBytes(byte[] sourceData)
          Decompresses the given byte array using the GZIP method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

gzipCompressBytes

public static byte[] gzipCompressBytes(byte[] sourceData)
Compresses the given byte array using the GZIP method.

Parameters:
sourceData - the data to compress.
Returns:
the compressed data.

gzipDecompressBytes

public static byte[] gzipDecompressBytes(byte[] sourceData)
Decompresses the given byte array using the GZIP method.

Parameters:
sourceData - the data to decompress.
Returns:
the decompressed data.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.