org.apache.directory.shared.asn1.codec
Interface BinaryEncoder

All Superinterfaces:
Encoder
All Known Implementing Classes:
BinaryCodec, Hex

public interface BinaryEncoder
extends Encoder

Defines common encoding methods for byte array encoders.

Version:
$Id: BinaryEncoder.java 434412 2006-08-24 16:20:48Z elecharny $
Author:
Apache Directory Project

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.directory.shared.asn1.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.


Copyright © 2004-2007 null. All Rights Reserved.