org.apache.axis2.datasource.jaxb
Class JAXBDataSource
java.lang.Object
org.apache.axiom.om.ds.OMDataSourceExtBase
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
Fields inherited from interface org.apache.axiom.om.OMDataSourceExt |
LOSSY_PREFIX |
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 |
JAXBDataSource
public JAXBDataSource(Object jaxb,
JAXBDSContext context)
close
public void close()
copy
public org.apache.axiom.om.OMDataSourceExt copy()
getObject
public Object getObject()
getContext
public JAXBDSContext getContext()
getReader
public XMLStreamReader getReader()
throws XMLStreamException
- Throws:
XMLStreamException
serialize
public void serialize(OutputStream output,
org.apache.axiom.om.OMOutputFormat format)
throws 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:
XMLStreamException
serialize
public void serialize(Writer writerTarget,
org.apache.axiom.om.OMOutputFormat format)
throws 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:
XMLStreamException
serialize
public void serialize(XMLStreamWriter xmlWriter)
throws 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:
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.