public class JsonXMLBinder extends Object
Modifier | Constructor and Description |
---|---|
|
JsonXMLBinder() |
protected |
JsonXMLBinder(boolean writeDocumentArray) |
protected |
JsonXMLBinder(JsonXMLRootProvider rootProvider,
boolean writeDocumentArray) |
Modifier and Type | Method and Description |
---|---|
protected JsonXMLInputFactory |
createInputFactory(Class<?> type,
JsonXML config) |
protected JsonXMLOutputFactory |
createOutputFactory(Class<?> type,
JsonXML config) |
protected XMLStreamReader |
createXMLStreamReader(Class<?> type,
JsonXML config,
Reader stream) |
protected XMLStreamWriter |
createXMLStreamWriter(Class<?> type,
JsonXML config,
Writer stream) |
boolean |
isBindable(Class<?> type) |
protected void |
marshal(Class<?> type,
JsonXML config,
Marshaller marshaller,
XMLStreamWriter writer,
Object value) |
<T> List<T> |
readArray(Class<? extends T> type,
JsonXML config,
JAXBContext context,
Reader stream) |
<T> T |
readObject(Class<? extends T> type,
JsonXML config,
JAXBContext context,
Reader stream) |
protected <T> T |
unmarshal(Class<? extends T> type,
JsonXML config,
Unmarshaller unmarshaller,
XMLStreamReader reader) |
void |
writeArray(Class<?> type,
JsonXML config,
JAXBContext context,
Writer stream,
Collection<?> collection) |
void |
writeObject(Class<?> type,
JsonXML config,
JAXBContext context,
Writer stream,
Object value) |
public JsonXMLBinder()
protected JsonXMLBinder(boolean writeDocumentArray)
protected JsonXMLBinder(JsonXMLRootProvider rootProvider, boolean writeDocumentArray)
protected JsonXMLInputFactory createInputFactory(Class<?> type, JsonXML config) throws JAXBException
JAXBException
protected XMLStreamReader createXMLStreamReader(Class<?> type, JsonXML config, Reader stream) throws XMLStreamException, JAXBException
XMLStreamException
JAXBException
protected JsonXMLOutputFactory createOutputFactory(Class<?> type, JsonXML config) throws JAXBException
JAXBException
protected XMLStreamWriter createXMLStreamWriter(Class<?> type, JsonXML config, Writer stream) throws XMLStreamException, JAXBException
XMLStreamException
JAXBException
public boolean isBindable(Class<?> type)
protected <T> T unmarshal(Class<? extends T> type, JsonXML config, Unmarshaller unmarshaller, XMLStreamReader reader) throws JAXBException, XMLStreamException
JAXBException
XMLStreamException
protected void marshal(Class<?> type, JsonXML config, Marshaller marshaller, XMLStreamWriter writer, Object value) throws JAXBException, XMLStreamException
JAXBException
XMLStreamException
public <T> T readObject(Class<? extends T> type, JsonXML config, JAXBContext context, Reader stream) throws XMLStreamException, JAXBException
XMLStreamException
JAXBException
public void writeObject(Class<?> type, JsonXML config, JAXBContext context, Writer stream, Object value) throws XMLStreamException, JAXBException
XMLStreamException
JAXBException
public <T> List<T> readArray(Class<? extends T> type, JsonXML config, JAXBContext context, Reader stream) throws XMLStreamException, JAXBException
XMLStreamException
JAXBException
public void writeArray(Class<?> type, JsonXML config, JAXBContext context, Writer stream, Collection<?> collection) throws XMLStreamException, JAXBException
XMLStreamException
JAXBException
Copyright © 2005–2023 Apache Software Foundation. All rights reserved.