org.apache.commons.codec
Interface Decoder
- BinaryDecoder, StringDecoder
- Base64, BCodec, BinaryCodec, Hex, QCodec, QuotedPrintableCodec, URLCodec
Provides the highest level of abstraction for Decoders.
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.
Version:
- Apache Software Foundation
decode
public Object decode(Object pObject)
Decodes an "encoded" Object and returns a "decoded"
Object. Note that the implementation of this
interface will try to cast the Object parameter
to the specific type expected by a particular Decoder
implementation. If a java.lang.ClassCastException
occurs
this decode method will throw a DecoderException.
pObject
- an object to "decode"
- a 'decoded" object
commons-codec version 1.3 - Copyright © 2002-2004 - Apache Software Foundation