org.apache.tuscany.sca.databinding.jaxb.axiom.ext
Class JAXBDataSourceExt

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.jaxb.axiom.ext.JAXBDataSourceExt

public class JAXBDataSourceExt
extends java.lang.Object

OMDataSource backed by a jaxb object


Constructor Summary
JAXBDataSourceExt(java.lang.Object jaxb, JAXBDSContext context)
           
 
Method Summary
 void close()
           
 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, OMOutputFormat format)
           
 void serialize(java.io.Writer writerTarget, OMOutputFormat format)
           
 void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBDataSourceExt

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

close

public void close()

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,
                      OMOutputFormat format)
               throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

serialize

public void serialize(java.io.Writer writerTarget,
                      OMOutputFormat format)
               throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

serialize

public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
               throws javax.xml.stream.XMLStreamException
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()