|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Decoder
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.
Method Summary | |
---|---|
Object |
decode(Object source)
Decodes an "encoded" Object and returns a "decoded" Object. |
Method Detail |
---|
Object decode(Object source) throws DecoderException
ClassCastException
occurs this decode method will throw a DecoderException.
source
- the object to decode
DecoderException
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |