public class DataBindingSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
protected JAXBContext |
context |
| Constructor and Description |
|---|
DataBindingSupport(JAXBContext context) |
| Modifier and Type | Method and Description |
|---|---|
String |
marshal(Object root) |
void |
marshal(Object root,
OutputStream stream) |
void |
marshal(Object root,
OutputStream stream,
boolean formattedOutput) |
Object |
unmarshal(InputStream stream) |
Object |
unmarshal(Reader reader) |
Object |
unmarshal(Source source) |
Object |
unmarshal(String xml) |
protected JAXBContext context
public DataBindingSupport(JAXBContext context)
public String marshal(Object root) throws JAXBException
JAXBExceptionpublic void marshal(Object root, OutputStream stream) throws JAXBException
JAXBExceptionpublic void marshal(Object root, OutputStream stream, boolean formattedOutput) throws JAXBException
JAXBExceptionpublic Object unmarshal(String xml) throws JAXBException
JAXBExceptionpublic Object unmarshal(Reader reader) throws JAXBException
JAXBExceptionpublic Object unmarshal(Source source) throws JAXBException
JAXBExceptionpublic Object unmarshal(InputStream stream) throws JAXBException
JAXBExceptionCopyright © 2021. All rights reserved.