org.apache.commons.codec
Interface BinaryEncoder

All Superinterfaces:
Encoder
All Known Implementing Classes:
Base64, Hex, URLCodec

public interface BinaryEncoder
extends Encoder

Defines common encoding methods for byte array encoders.

Version:
$Id: BinaryEncoder.java,v 1.7 2003/11/13 06:48:31 ggregory Exp $
Author:
Tim O'Brien, Gary Gregory

Method Summary
 byte[] encode(byte[] pArray)
          Encodes 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
Encodes 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.


${component.name} version 1.2 - Copyright © 2003 - Apache Software Foundation