org.apache.commons.codec

Interface BinaryEncoder

public interface BinaryEncoder extends Encoder

Defines common encoding methods for byte array encoders.

Version: $Id: BinaryEncoder.java 130304 2004-02-29 04:08:31Z tobrien $

Author: Apache Software Foundation

Method Summary
byte[]encode(byte[] pArray)
Encodes a byte array and return the encoded data as a byte array.

Method Detail

encode

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

commons-codec version 1.3 - Copyright © 2002-2004 - Apache Software Foundation