org.apache.axis2.format
Class WrappedTextNodeOMDataSourceFromReader
java.lang.Object
org.apache.axiom.om.ds.OMDataSourceExtBase
org.apache.axis2.format.WrappedTextNodeOMDataSourceFromReader
- All Implemented Interfaces:
- org.apache.axiom.om.OMDataSource, org.apache.axiom.om.OMDataSourceExt
public class WrappedTextNodeOMDataSourceFromReader
- extends org.apache.axiom.om.ds.OMDataSourceExtBase
OMDataSource
implementation that represents a text node wrapped
inside an element. The text data is provided by a Reader
object. Since the stream
can only be read once, this data source is destructive.
Fields inherited from interface org.apache.axiom.om.OMDataSourceExt |
LOSSY_PREFIX |
Methods inherited from class org.apache.axiom.om.ds.OMDataSourceExtBase |
getProperty, getXMLInputStream, hasProperty, serialize, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WrappedTextNodeOMDataSourceFromReader
public WrappedTextNodeOMDataSourceFromReader(javax.xml.namespace.QName wrapperElementName,
java.io.Reader reader)
serialize
public void serialize(java.io.Writer writer,
org.apache.axiom.om.OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
- Specified by:
serialize
in interface org.apache.axiom.om.OMDataSource
- Specified by:
serialize
in interface org.apache.axiom.om.OMDataSourceExt
- Overrides:
serialize
in class org.apache.axiom.om.ds.OMDataSourceExtBase
- Throws:
javax.xml.stream.XMLStreamException
serialize
public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException
- Specified by:
serialize
in interface org.apache.axiom.om.OMDataSource
- Specified by:
serialize
in interface org.apache.axiom.om.OMDataSourceExt
- Overrides:
serialize
in class org.apache.axiom.om.ds.OMDataSourceExtBase
- Throws:
javax.xml.stream.XMLStreamException
getReader
public javax.xml.stream.XMLStreamReader getReader()
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
getObject
public java.lang.Object getObject()
isDestructiveRead
public boolean isDestructiveRead()
isDestructiveWrite
public boolean isDestructiveWrite()
getXMLBytes
public byte[] getXMLBytes(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
close
public void close()
copy
public org.apache.axiom.om.OMDataSourceExt copy()
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.