public interface OMDataSource
Modifier and Type | Method and Description |
---|---|
XMLStreamReader |
getReader()
Get parser for element data.
|
void |
serialize(OutputStream output,
OMOutputFormat format)
Serializes element data directly to stream.
|
void |
serialize(Writer writer,
OMOutputFormat format)
Serializes element data directly to writer.
|
void |
serialize(XMLStreamWriter xmlWriter)
Serializes element data directly to StAX writer.
|
void serialize(OutputStream output, OMOutputFormat format) throws XMLStreamException
output
- destination stream for element XML textformat
- 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.XMLStreamException
void serialize(Writer writer, OMOutputFormat format) throws XMLStreamException
writer
- destination writer for element XML textformat
- output format information (null
if none; may be ignored if not
supported by data binding even if supplied)XMLStreamException
void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
xmlWriter
- destination writerXMLStreamException
XMLStreamReader getReader() throws XMLStreamException
XMLStreamException
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.