Package org.apache.commons.codec
Interface BinaryDecoder
- All Superinterfaces:
Decoder
- All Known Implementing Classes:
Base16
,Base32
,Base64
,BaseNCodec
,BinaryCodec
,Hex
,PercentCodec
,QuotedPrintableCodec
,URLCodec
Defines common decoding methods for byte array decoders.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
decode
(byte[] source) Decodes a byte array and returns the results as a byte array.
-
Method Details
-
decode
Decodes a byte array and returns the results as a byte array.- Parameters:
source
- A byte array which has been encoded with the appropriate encoder- Returns:
- a byte array that contains decoded content
- Throws:
DecoderException
- A decoder exception is thrown if a Decoder encounters a failure condition during the decode process.
-