public interface OMDataSource
Modifier and Type | Method and Description |
---|---|
javax.xml.stream.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(javax.xml.stream.XMLStreamWriter xmlWriter)
Serializes element data directly to StAX writer.
|
void serialize(OutputStream output, OMOutputFormat format) throws javax.xml.stream.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.javax.xml.stream.XMLStreamException
void serialize(Writer writer, OMOutputFormat format) throws javax.xml.stream.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)javax.xml.stream.XMLStreamException
void serialize(javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException
xmlWriter
- destination writerjavax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamReader getReader() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.