Interface ISerializer


  • public interface ISerializer
    Since:
    Mar 8, 2006
    • Method Detail

      • handshake

        NCMap handshake()
        Returns:
        the handshake dictionary
      • read

        NCType read()
             throws IOException
        Reads a NCType object from a DataInput.
        Returns:
        a NCType object from the specified DataInput
        Throws:
        IOException - on I/O failure
      • write

        ISerializer write​(NCType val)
                   throws IOException
        Writes an NCType object to a DataOutput.
        Parameters:
        val - NCType to write
        Returns:
        the Serializer
        Throws:
        IOException - on I/O failure
      • isValid

        boolean isValid()
        Returns true if the ISerializer object is valid
        Returns:
        true if the ISerializer object is valid
      • dispose

        void dispose​(boolean sendShutdownMessage)
        Close the internal input/output streams
        Parameters:
        sendShutdownMessage - - if true sends a shutdown message before disposal