Package org.apache.commons.codec
Interface BinaryEncoder
- All Superinterfaces:
- Encoder
- All Known Implementing Classes:
- Base16,- Base32,- Base64,- BaseNCodec,- BinaryCodec,- Hex,- PercentCodec,- QuotedPrintableCodec,- URLCodec
Defines common encoding methods for byte array encoders.
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]encode(byte[] source) Encodes a byte array and return the encoded data as a byte array.
- 
Method Details- 
encodeEncodes a byte array and return the encoded data as a byte array.- Parameters:
- source- 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.
 
 
-