Interface Codec

    • Method Detail

      • decode

        Object decode​(PofReader in,
                      int iProp)
               throws IOException
        Deserialize an object from the provided PofReader. Implementing this interface allows introducing specific return implementations.
        Parameters:
        in - the PofReader to read from
        iProp - the index of the POF property to deserialize
        Returns:
        a specific implementation of the POF property
        Throws:
        IOException - if an I/O error occurs
      • encode

        void encode​(PofWriter out,
                    int iProp,
                    Object value)
             throws IOException
        Serialize an object using the provided PofWriter.
        Parameters:
        out - the PofWriter to read from
        iProp - the index of the POF property to serialize
        value - the value to serialize
        Throws:
        IOException - if an I/O error occurs