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

## com.stc.connector.framework.util
Class ZIPUtils

    java.lang.Object
      com.stc.connector.framework.util.ZIPUtils

public class ZIPUtils
extends java.lang.Object

Implements ZIP utilities.

Version:
  $Revision: 1.1 $
Author:
  schen

Constructor Summary
`ZIPUtils()` Creates new ZIPUtils

Method Summary
`byte[]` | `deflate(byte[] msg)` Compress byte data.
`byte[]` | `inflate(byte[] data)` Inflate byte data.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ZIPUtils

    public ZIPUtils()

  Creates new ZIPUtils

Method Detail

### deflate

    public byte[] deflate(byte[] msg)
                   throws java.io.IOException

  Compress byte data.

  Parameters:
    `msg` - Data to compress
  Returns:
    Compressed data.
  Throws:
    `java.io.IOException` - upon error.

### inflate

    public byte[] inflate(byte[] data)
                   throws java.io.IOException,
                          java.util.zip.DataFormatException

  Inflate byte data.

  Parameters:
    `data` - Data to inflate.
  Returns:
    Inflated data.
  Throws:
    `java.io.IOException` - upon error.
    `java.util.zip.DataFormatException` - upon error.

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