org.apache.axis2.format
Class WrappedTextNodeOMDataSourceFromDataSource

java.lang.Object
  extended by org.apache.axiom.om.ds.OMDataSourceExtBase
      extended by org.apache.axis2.format.WrappedTextNodeOMDataSourceFromDataSource
All Implemented Interfaces:
org.apache.axiom.om.OMDataSource, org.apache.axiom.om.OMDataSourceExt

public class WrappedTextNodeOMDataSourceFromDataSource
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 DataSource object.


Field Summary
 
Fields inherited from interface org.apache.axiom.om.OMDataSourceExt
LOSSY_PREFIX
 
Constructor Summary
WrappedTextNodeOMDataSourceFromDataSource(javax.xml.namespace.QName wrapperElementName, javax.activation.DataSource binaryData, java.nio.charset.Charset charset)
           
 
Method Summary
 void close()
           
 org.apache.axiom.om.OMDataSourceExt copy()
           
 java.lang.Object getObject()
           
 javax.xml.stream.XMLStreamReader getReader()
           
 byte[] getXMLBytes(java.lang.String encoding)
           
 boolean isDestructiveRead()
           
 boolean isDestructiveWrite()
           
 void serialize(java.io.OutputStream out, org.apache.axiom.om.OMOutputFormat format)
           
 void serialize(java.io.Writer writer, org.apache.axiom.om.OMOutputFormat format)
           
 void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
           
 
Methods inherited from class org.apache.axiom.om.ds.OMDataSourceExtBase
getProperty, getXMLInputStream, hasProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappedTextNodeOMDataSourceFromDataSource

public WrappedTextNodeOMDataSourceFromDataSource(javax.xml.namespace.QName wrapperElementName,
                                                 javax.activation.DataSource binaryData,
                                                 java.nio.charset.Charset charset)
Method Detail

serialize

public void serialize(java.io.OutputStream out,
                      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(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.