Interface ISerializer


public interface ISerializer
Since:
Mar 8, 2006
  • Field Details

  • Method Details

    • 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
    • flush

      ISerializer flush() throws IOException
      Flush buffered data if any
      Returns:
      the Serializer
      Throws:
      IOException - on error
    • 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