Interface Encoder

    • Method Detail

      • encode

        Object encode​(Object source)
               throws EncoderException
        Encodes an "Object" and returns the encoded content as an Object. The Objects here may just be byte[] or Strings depending on the implementation used.
        Parameters:
        source - An object to encode
        Returns:
        An "encoded" Object
        Throws:
        EncoderException - An encoder exception is thrown if the encoder experiences a failure condition during the encoding process.