|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.ds.OMDataSourceExtBase
public abstract class OMDataSourceExtBase
OMDataSourceExtBase is a convenient base class that can be extended by other OMDataSourceExt implementations.
Field Summary |
---|
Fields inherited from interface org.apache.axiom.om.OMDataSourceExt |
---|
LOSSY_PREFIX |
Constructor Summary | |
---|---|
OMDataSourceExtBase()
|
Method Summary | |
---|---|
Object |
getProperty(String key)
Query a property stored on the OMDataSource |
InputStream |
getXMLInputStream(String encoding)
Returns a InputStream representing the xml data |
boolean |
hasProperty(String key)
Returns true if property is set |
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. |
Object |
setProperty(String key,
Object value)
Set a property on the OMDataSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.axiom.om.OMDataSourceExt |
---|
close, copy, getObject, getReader, getXMLBytes, isDestructiveRead, isDestructiveWrite |
Constructor Detail |
---|
public OMDataSourceExtBase()
Method Detail |
---|
public Object getProperty(String key)
OMDataSourceExt
getProperty
in interface OMDataSourceExt
public Object setProperty(String key, Object value)
OMDataSourceExt
setProperty
in interface OMDataSourceExt
public boolean hasProperty(String key)
OMDataSourceExt
hasProperty
in interface OMDataSourceExt
public InputStream getXMLInputStream(String encoding) throws UnsupportedEncodingException
OMDataSourceExt
getXMLInputStream
in interface OMDataSourceExt
encoding
- String encoding of InputStream
UnsupportedEncodingException
public void serialize(OutputStream output, OMOutputFormat format) throws javax.xml.stream.XMLStreamException
OMDataSourceExt
serialize
in interface OMDataSource
serialize
in interface OMDataSourceExt
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
OMDataSourceExt
public void serialize(Writer writer, OMOutputFormat format) throws javax.xml.stream.XMLStreamException
OMDataSourceExt
serialize
in interface OMDataSource
serialize
in interface OMDataSourceExt
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
OMDataSourceExt
public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException
OMDataSourceExt
serialize
in interface OMDataSource
serialize
in interface OMDataSourceExt
xmlWriter
- destination writer
javax.xml.stream.XMLStreamException
OMDataSourceExt
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |