|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OMDataSource
Interface to arbitrary source of XML element data. This provides the hook for using a general data source (such as data binding frameworks) as the backing source of data for an element.
Method Summary | |
---|---|
javax.xml.stream.XMLStreamReader |
getReader()
Get parser for element data. |
void |
serialize(java.io.OutputStream output,
OMOutputFormat format)
Serializes element data directly to stream. |
void |
serialize(java.io.Writer writer,
OMOutputFormat format)
Serializes element data directly to writer. |
void |
serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
Serializes element data directly to StAX writer. |
Method Detail |
---|
void serialize(java.io.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(java.io.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 writer
javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamReader getReader() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |