org.apache.geronimo.remoting.transport.async
Class Compression
java.lang.Object
org.apache.geronimo.remoting.transport.async.Compression
- public class Compression
- extends Object
Used to add compression at the transport level.
- Version:
- $Revision: 1.3 $ $Date: 2004/03/10 09:59:20 $
Method Summary |
static byte[] |
compress(byte[] input,
int compressionLevel)
Compresses the input data. |
static byte[] |
uncompress(byte[] input)
Un-compresses the input data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Compression
public Compression()
compress
public static byte[] compress(byte[] input,
int compressionLevel)
- Compresses the input data.
uncompress
public static byte[] uncompress(byte[] input)
throws IOException
- Un-compresses the input data.
- Throws:
IOException
- if the input is not valid.
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.