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() |
javax.xml.stream.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(javax.xml.stream.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 javax.xml.stream.XMLStreamReader getReader() throws javax.xml.stream.XMLStreamException
public void serialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourceserialize in class org.apache.axiom.om.ds.OMDataSourceExtBasejavax.xml.stream.XMLStreamExceptionpublic void serialize(Writer writerTarget, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourceserialize in class org.apache.axiom.om.ds.OMDataSourceExtBasejavax.xml.stream.XMLStreamExceptionpublic void serialize(javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourceserialize in class org.apache.axiom.om.ds.OMDataSourceExtBasejavax.xml.stream.XMLStreamExceptionpublic byte[] getXMLBytes(String encoding) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic boolean isDestructiveRead()
public boolean isDestructiveWrite()
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.