Interface IEncoderDecoder

All Known Implementing Classes:
DefaultMessageEncoderDecoder, KeepAliveMessageEncoderDecoder, LargeMessageEncoderDecoder, MessageEncoderDecoderAdapter

public interface IEncoderDecoder
The Interface IEncoderDecoder. Abstracts EncoderDecoder implementations.
  • Method Details

    • encode

      void encode(OutputStream os, Object obj) throws Exception
      Encode object to output stream.
      Parameters:
      os - the os to fill
      obj - the obj to encode
      Throws:
      Exception - the exception
    • decode

      Object decode(InputStream is) throws Exception
      Decode input stream.
      Parameters:
      is - the is to decode
      Returns:
      the object decoded
      Throws:
      Exception - the exception