|
||||||||||
| 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 | |
|---|---|
(package private) java.util.HashMap |
map
|
| Constructor Summary | |
|---|---|
OMDataSourceExtBase()
|
|
| Method Summary | |
|---|---|
private static java.lang.String |
getCharacterEncoding(javax.xml.stream.XMLStreamWriter writer)
Get the character set encoding of the XMLStreamWriter |
private static java.io.OutputStream |
getOutputStream(javax.xml.stream.XMLStreamWriter writer)
Some XMLStreamWriters expose an OutputStream that can be accessed directly. |
java.lang.Object |
getProperty(java.lang.String key)
Query a property stored on the OMDataSource |
java.io.InputStream |
getXMLInputStream(java.lang.String encoding)
Returns a InputStream representing the xml data |
boolean |
hasProperty(java.lang.String key)
Returns true if property is set |
private static void |
reader2writer(javax.xml.stream.XMLStreamReader reader,
javax.xml.stream.XMLStreamWriter writer)
Simple utility that takes an XMLStreamReader and writes it to an XMLStreamWriter |
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. |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.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 |
| Field Detail |
|---|
java.util.HashMap map
| Constructor Detail |
|---|
public OMDataSourceExtBase()
| Method Detail |
|---|
public java.lang.Object getProperty(java.lang.String key)
OMDataSourceExt
getProperty in interface OMDataSourceExt
public java.lang.Object setProperty(java.lang.String key,
java.lang.Object value)
OMDataSourceExt
setProperty in interface OMDataSourceExtpublic boolean hasProperty(java.lang.String key)
OMDataSourceExt
hasProperty in interface OMDataSourceExt
public java.io.InputStream getXMLInputStream(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
OMDataSourceExt
getXMLInputStream in interface OMDataSourceExtencoding - String encoding of InputStream
java.io.UnsupportedEncodingException
public void serialize(java.io.OutputStream output,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
OMDataSource
serialize in interface OMDataSourceserialize in interface OMDataSourceExtoutput - destination stream 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.XMLStreamExceptionOMDataSourceExt
public void serialize(java.io.Writer writer,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
OMDataSource
serialize in interface OMDataSourceserialize in interface OMDataSourceExtwriter - 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.XMLStreamExceptionOMDataSourceExt
public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException
OMDataSource
serialize in interface OMDataSourceserialize in interface OMDataSourceExtxmlWriter - destination writer
javax.xml.stream.XMLStreamExceptionOMDataSourceExt
private static void reader2writer(javax.xml.stream.XMLStreamReader reader,
javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
reader - writer -
javax.xml.stream.XMLStreamException
private static java.io.OutputStream getOutputStream(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprivate static java.lang.String getCharacterEncoding(javax.xml.stream.XMLStreamWriter writer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||