Interface EncoderDecoder<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T decode​(byte[] bytes)
      Decodes an object from the specified array of bytes.
      T decode​(byte[] bytes, int offset, int limit)
      Decodes an object from the specified array of bytes.
      T decode​(DataReader in)
      Decodes an object from the specified reader.
      T decode​(InputStream in)
      Decodes an object from the specified stream.
      byte[] encode​(T obj)
      Encodes the specified object into an array of bytes.
      void encode​(T obj, DataWriter out)
      Encodes the specified object into the specified writer.
      void encode​(T obj, OutputStream out)
      Encodes the specified object into the specified stream.