org.osesb.utilities.compression
Interface ICompressionService

All Known Implementing Classes:
ZIPCompressionService

public interface ICompressionService

This Interface is implemented by objects that provide compression services.

Since:
Version .9

Method Summary
 byte[] compress(byte[] inputData)
          Compress input data.
 byte[] compress(java.io.InputStream inputData)
          Compress input data.
 byte[] decompress(byte[] inputData)
          Decompress input data.
 byte[] decompress(java.io.InputStream inputData)
          Decompress input data.
 

Method Detail

compress

byte[] compress(byte[] inputData)
                throws java.lang.Exception
Compress input data.

Parameters:
inputData - The data to compress as a byte[].
Returns:
the compressed data as a byte[].
Throws:
java.lang.Exception - if there is a problem compressing the data.

compress

byte[] compress(java.io.InputStream inputData)
                throws java.lang.Exception
Compress input data.

Parameters:
inputData - The data to compress as an InputStream.
Returns:
the compressed data as a byte[].
Throws:
java.lang.Exception - if there is a problem compressing the data.

decompress

byte[] decompress(byte[] inputData)
                  throws java.lang.Exception
Decompress input data.

Parameters:
inputData - The data to decompress as a byte[].
Returns:
the compressed data as a byte[].
Throws:
java.lang.Exception - if there is a problem decompressing the data.

decompress

byte[] decompress(java.io.InputStream inputData)
                  throws java.lang.Exception
Decompress input data.

Parameters:
inputData - The data to decompress as an InputStream.
Returns:
the compressed data as a byte[].
Throws:
java.lang.Exception - if there is a problem decompressing the data.