Interface Encodable

    • Method Detail

      • getEncodableClassId

        int getEncodableClassId()
        Returns a unique class identifier.
        Returns:
        a unique class identifier
      • getEncodedSize

        int getEncodedSize()
                    throws Exception
        Returns the size of the byte array that results from the encoding of this object.
        Returns:
        the size of the encoded byte array
        Throws:
        Exception - if an error occurs
      • encode

        void encode​(Encoder encoder)
             throws Exception
        Encodes the content of this object
        Parameters:
        encoder - the encoder to be used for the encoding
        Throws:
        Exception - if an error occurs
      • decode

        void decode​(Decoder decoder)
             throws Exception
        Decodes the content of this object
        Parameters:
        decoder - the decoder to be used for the decoding
        Throws:
        Exception - if an error occurs