Home All Groups
commons-codec / org / apache / commons / codec / Decoder.html /
org.apache.commons.codec

Interface Decoder

    • Method Detail

      • decode

        Object decode(Object source)
               throws DecoderException
        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 ClassCastException occurs this decode method will throw a DecoderException.
        Parameters:
        source - the object to decode
        Returns:
        a 'decoded" object
        Throws:
        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.

Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.