org.apache.axis2.datasource
Class XMLStringDataSource

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

public class XMLStringDataSource
extends org.apache.axiom.om.ds.OMDataSourceExtBase

OMDataSource backed by a string containing xml data


Field Summary
 
Fields inherited from interface org.apache.axiom.om.OMDataSourceExt
LOSSY_PREFIX
 
Constructor Summary
XMLStringDataSource(String data)
           
 
Method Summary
 void close()
           
 org.apache.axiom.om.OMDataSourceExt copy()
           
 Object getObject()
           
 XMLStreamReader getReader()
           
 byte[] getXMLBytes(String encoding)
           
 boolean isDestructiveRead()
           
 boolean isDestructiveWrite()
           
 
Methods inherited from class org.apache.axiom.om.ds.OMDataSourceExtBase
getProperty, getXMLInputStream, hasProperty, serialize, serialize, serialize, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLStringDataSource

public XMLStringDataSource(String data)
Method Detail

close

public void close()

copy

public org.apache.axiom.om.OMDataSourceExt copy()

getObject

public Object getObject()

getReader

public XMLStreamReader getReader()
                          throws XMLStreamException
Throws:
XMLStreamException

getXMLBytes

public byte[] getXMLBytes(String encoding)
                   throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

isDestructiveRead

public boolean isDestructiveRead()

isDestructiveWrite

public boolean isDestructiveWrite()


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.