Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`Compression()`

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`

Constructor Detail

### Compression

    public Compression()

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 JBoss Group, LLC. All Rights Reserved.