org.apache.axis2.datasource.jaxb
Class JAXBDataSource

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

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

OMDataSource backed by a jaxb object


Constructor Summary
JAXBDataSource(java.lang.Object jaxb, JAXBDSContext context)
           
 
Method Summary
 void close()
           
 org.apache.axiom.om.OMDataSourceExt copy()
           
 JAXBDSContext getContext()
           
 java.lang.Object getObject()
           
 javax.xml.stream.XMLStreamReader getReader()
           
 byte[] getXMLBytes(java.lang.String encoding)
           
 boolean isDestructiveRead()
           
 boolean isDestructiveWrite()
           
 void serialize(java.io.OutputStream output, org.apache.axiom.om.OMOutputFormat format)
           
 void serialize(java.io.Writer writerTarget, 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

JAXBDataSource

public JAXBDataSource(java.lang.Object jaxb,
                      JAXBDSContext context)
Method Detail

close

public void close()

copy

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

getObject

public java.lang.Object getObject()

getContext

public JAXBDSContext getContext()

getReader

public javax.xml.stream.XMLStreamReader getReader()
                                           throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

serialize

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

getXMLBytes

public byte[] getXMLBytes(java.lang.String encoding)
                   throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

isDestructiveRead

public boolean isDestructiveRead()

isDestructiveWrite

public boolean isDestructiveWrite()


Copyright © 2007 Apache Web Services Project. All Rights Reserved.