public class JsonXMLMapper<T> extends Object
| Constructor and Description |
|---|
JsonXMLMapper(Class<T> type) |
JsonXMLMapper(Class<T> type,
JsonXML config) |
| Modifier and Type | Method and Description |
|---|---|
protected JsonXMLBinder |
createBinder(JsonXML config) |
protected JAXBContext |
createContext(JsonXML config) |
List<T> |
readArray(InputStream input) |
List<T> |
readArray(Reader reader) |
T |
readObject(InputStream input) |
T |
readObject(Reader reader) |
void |
writeArray(OutputStream output,
Collection<T> collection) |
void |
writeArray(Writer writer,
Collection<T> collection) |
void |
writeObject(OutputStream output,
T value) |
void |
writeObject(Writer writer,
T value) |
public JsonXMLMapper(Class<T> type) throws JAXBException
JAXBExceptionpublic JsonXMLMapper(Class<T> type, JsonXML config) throws JAXBException
JAXBExceptionprotected JsonXMLBinder createBinder(JsonXML config)
protected JAXBContext createContext(JsonXML config) throws JAXBException
JAXBExceptionpublic T readObject(Reader reader) throws JAXBException, XMLStreamException
JAXBExceptionXMLStreamExceptionpublic T readObject(InputStream input) throws JAXBException, XMLStreamException
JAXBExceptionXMLStreamExceptionpublic void writeObject(Writer writer, T value) throws JAXBException, XMLStreamException
JAXBExceptionXMLStreamExceptionpublic void writeObject(OutputStream output, T value) throws JAXBException, XMLStreamException
JAXBExceptionXMLStreamExceptionpublic List<T> readArray(Reader reader) throws JAXBException, XMLStreamException
JAXBExceptionXMLStreamExceptionpublic List<T> readArray(InputStream input) throws JAXBException, XMLStreamException
JAXBExceptionXMLStreamExceptionpublic void writeArray(Writer writer, Collection<T> collection) throws JAXBException, XMLStreamException
JAXBExceptionXMLStreamExceptionpublic void writeArray(OutputStream output, Collection<T> collection) throws JAXBException, XMLStreamException
JAXBExceptionXMLStreamExceptionCopyright © 2005–2019 Apache Software Foundation. All rights reserved.