org.jboss.remoting.transport.async
Class Compression
java.lang.Object
org.jboss.remoting.transport.async.Compression
- public class Compression
- extends Object
Used to add compression at the transport level.
- Author:
- Hiram Chirino
|
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 © 2002 JBoss Group, LLC. All Rights Reserved.