Interface OMDataSource

    • Method Detail

      • serialize

        void serialize​(OutputStream output,
                       OMOutputFormat format)
                throws XMLStreamException
        Serializes element data directly to stream.
        Parameters:
        output - destination stream for element XML text
        format - Output format information. The implementation must use this information to choose the correct character set encoding when writing to the output stream. This parameter must not be null.
        Throws:
        XMLStreamException
      • serialize

        void serialize​(Writer writer,
                       OMOutputFormat format)
                throws XMLStreamException
        Serializes element data directly to writer.
        Parameters:
        writer - destination writer for element XML text
        format - output format information (null if none; may be ignored if not supported by data binding even if supplied)
        Throws:
        XMLStreamException
      • getReader

        XMLStreamReader getReader()
                           throws XMLStreamException
        Get parser for element data. In the general case this may require the data source to serialize data as XML text and then parse that text.
        Returns:
        element parser
        Throws:
        XMLStreamException