Interface AdaptrisMessageEncoder<T,​S>

    • Method Detail

      • writeMessage

        void writeMessage​(AdaptrisMessage msg,
                          T target)
                   throws CoreException
        Encode the AdaptrisMessage object and write it to the supplied target
        Parameters:
        msg - the AdaptrisMessage to be encoded
        target - the destination to write to.
        Throws:
        CoreException - wrapping any underlying Exceptions that may occur
      • readMessage

        AdaptrisMessage readMessage​(S source)
                             throws CoreException
        Decode the supplied Object into an AdaptrisMessage object.
        Parameters:
        source - the object to be decoded.
        Returns:
        an AdaptrisMessage created from the object.
        Throws:
        CoreException - wrapping any underlying Exceptions that may occur