guarana.toolkit.task.streamdealers.codecs
Interface ICodec

All Known Implementing Classes:
Base64Codec, QuotedPrintableCodec, URLCodec

public interface ICodec

The interface every codec must implement.

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

Method Summary
 byte[] decode(byte[] data)
          Compress an array of bytes.
 byte[] encode(byte[] data)
          Encodes an array of bytes.
 

Method Detail

encode

byte[] encode(byte[] data)
              throws CodecException
Encodes an array of bytes.

Parameters:
data - The array to be encoded.
Returns:
an array of encoded bytes.
Throws:
CodecException - if this method cannot encode the data.

decode

byte[] decode(byte[] data)
              throws CodecException
Compress an array of bytes.

Parameters:
data - The array to be decoded.
Returns:
an array of decoded bytes.
Throws:
CodecException - if this method cannot decode the data.


Guaranį DSL Home