Interface Portable

    • Method Detail

      • getFactoryId

        int getFactoryId()
        Returns PortableFactory ID for this portable class
        Returns:
        factory ID
      • getClassId

        int getClassId()
        Returns class identifier for this portable class. Class ID should be unique per PortableFactory.
        Returns:
        class ID
      • writePortable

        void writePortable​(PortableWriter writer)
                    throws java.io.IOException
        Serialize this portable object using PortableWriter
        Parameters:
        writer - PortableWriter
        Throws:
        java.io.IOException - in case of any exceptional case
      • readPortable

        void readPortable​(PortableReader reader)
                   throws java.io.IOException
        Read portable fields using PortableReader
        Parameters:
        reader - PortableReader
        Throws:
        java.io.IOException - in case of any exceptional case