Interface XmlObjectSerializer

All Known Implementing Classes:
XmlObjectSerializerImpl

public interface XmlObjectSerializer
Interface for writing objects to a stream.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    close(boolean closeUnderlyingStream)
    Adds document end tag and optinally closes the underlying stream
    void
    Flushes the underlying stream.
    void
    Writes the next object to the stream.
  • Method Details Link icon

    • writeObject Link icon

      void writeObject(Object object)
      Writes the next object to the stream.
      Parameters:
      object - The object to write.
      Throws:
      ConnectorException - if there is more than one object and this is not configured for multi-object document.
      See Also:
    • flush Link icon

      void flush()
      Flushes the underlying stream.
    • close Link icon

      void close(boolean closeUnderlyingStream)
      Adds document end tag and optinally closes the underlying stream