org.apache.commons.codec
Interface BinaryEncoder

All Superinterfaces:
Encoder
All Known Implementing Classes:
Base64

public interface BinaryEncoder
extends Encoder

A binary encoder contains methods common to all encoders for binary data.

Version:
$Revision: 1.1 $ $Date: 2003/04/25 17:50:56 $
Author:
Tim O'Brien

Method Summary
 byte[] encode(byte[] pArray)
          Encode a byte array and return the encoded data as a byte array.
 
Methods inherited from interface org.apache.commons.codec.Encoder
encode
 

Method Detail

encode

public byte[] encode(byte[] pArray)
              throws EncoderException
Encode a byte array and return the encoded data as a byte array.

Parameters:
pArray - Data to be encoded
Returns:
A byte array containing the encoded data
Throws:
EncoderException - thrown if the Encoder encounters a failure condition during the encoding process.


Copyright © 2002-2003 Apache Software Foundation. All Rights Reserved.