public final class JAXB extends Object
Modifier and Type | Method and Description |
---|---|
static <T> StringWriter |
marshal(JAXBElement<T> rootElement,
Class<T> type,
Map<String,Object> props,
Charset encoding) |
static <T> void |
marshal(JAXBElement<T> rootElement,
Class<T> type,
Map<String,Object> props,
Writer destination,
Charset encoding) |
static <T> String |
marshal(T bean,
Charset encoding) |
static <T> StringWriter |
marshal(T bean,
Class<T> type,
Map<String,Object> props,
Charset encoding) |
static <T> StringWriter |
marshal(T bean,
Map<String,Object> props,
Charset encoding) |
static <T> T |
unmarshal(File source,
Class<T> rootXmlNode) |
static <T> T |
unmarshal(File source,
Class<T> rootXmlNode,
Map<String,?> props) |
public static <T> T unmarshal(File source, Class<T> rootXmlNode) throws JAXBException
JAXBException
public static <T> T unmarshal(File source, Class<T> rootXmlNode, Map<String,?> props) throws JAXBException
JAXBException
public static <T> String marshal(T bean, Charset encoding) throws JAXBException, IOException
JAXBException
IOException
public static <T> StringWriter marshal(T bean, Map<String,Object> props, Charset encoding) throws JAXBException, IOException
JAXBException
IOException
public static <T> StringWriter marshal(T bean, Class<T> type, Map<String,Object> props, Charset encoding) throws JAXBException, IOException
JAXBException
IOException
public static <T> StringWriter marshal(JAXBElement<T> rootElement, Class<T> type, Map<String,Object> props, Charset encoding) throws JAXBException, IOException
JAXBException
IOException
public static <T> void marshal(JAXBElement<T> rootElement, Class<T> type, Map<String,Object> props, Writer destination, Charset encoding) throws JAXBException
JAXBException
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.