guarana.toolkit.task.streamdealers.compressors
Interface ICompressor

All Known Implementing Classes:
GZipCompressor, ZipCompressor, ZLIBCompressor

public interface ICompressor

The interface every compressor must implement.

Since:
Guaranį SDK 1.0.0
Author:
Rafael Z. Frantz

Method Summary
 byte[] deflate(byte[] data)
          Compress an array of bytes.
 byte[] inflate(byte[] data)
          Uncompress an array of bytes.
 

Method Detail

inflate

byte[] inflate(byte[] data)
               throws CompressorException
Uncompress an array of bytes.

Parameters:
data - The array to be inflated.
Returns:
an array of uncompressed bytes.
Throws:
CompressorException - if this method cannot inflate the data.

deflate

byte[] deflate(byte[] data)
               throws CompressorException
Compress an array of bytes.

Parameters:
data - The array to be deflated.
Returns:
an array of compressed bytes.
Throws:
CompressorException - if this method cannot deflate the data.


Guaranį DSL Home