BinaryDecoder, StringDecoderBase32, Base64, BaseNCodec, BCodec, BinaryCodec, Hex, QCodec, QuotedPrintableCodec, URLCodecpublic interface Decoder
This is the sister interface of Encoder. All Decoders implement this common generic interface.
Allows a user to pass a generic Object to any Decoder implementation in the codec package.
One of the two interfaces at the center of the codec package.
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
decode(java.lang.Object source) |
Decodes an "encoded" Object and returns a "decoded" Object.
|
java.lang.Object decode(java.lang.Object source) throws DecoderException
ClassCastException occurs this decode method will throw a DecoderException.source - the object to decodeDecoderException - a decoder exception can be thrown for any number of reasons. Some good candidates are that the
parameter passed to this method is null, a param cannot be cast to the appropriate type for a
specific encoder.