public class JAXBDataSource
extends org.apache.axiom.om.ds.OMDataSourceExtBase
Constructor and Description |
---|
JAXBDataSource(Object jaxb,
JAXBDSContext context) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.axiom.om.OMDataSourceExt |
copy() |
JAXBDSContext |
getContext() |
Object |
getObject() |
XMLStreamReader |
getReader() |
byte[] |
getXMLBytes(String encoding) |
boolean |
isDestructiveRead() |
boolean |
isDestructiveWrite() |
void |
serialize(OutputStream output,
org.apache.axiom.om.OMOutputFormat format) |
void |
serialize(Writer writerTarget,
org.apache.axiom.om.OMOutputFormat format) |
void |
serialize(XMLStreamWriter xmlWriter) |
public JAXBDataSource(Object jaxb, JAXBDSContext context)
public void close()
public org.apache.axiom.om.OMDataSourceExt copy()
public Object getObject()
public JAXBDSContext getContext()
public XMLStreamReader getReader() throws XMLStreamException
XMLStreamException
public void serialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws XMLStreamException
serialize
in interface org.apache.axiom.om.OMDataSource
serialize
in class org.apache.axiom.om.ds.OMDataSourceExtBase
XMLStreamException
public void serialize(Writer writerTarget, org.apache.axiom.om.OMOutputFormat format) throws XMLStreamException
serialize
in interface org.apache.axiom.om.OMDataSource
serialize
in class org.apache.axiom.om.ds.OMDataSourceExtBase
XMLStreamException
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
serialize
in interface org.apache.axiom.om.OMDataSource
serialize
in class org.apache.axiom.om.ds.OMDataSourceExtBase
XMLStreamException
public byte[] getXMLBytes(String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public boolean isDestructiveRead()
public boolean isDestructiveWrite()
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.