public class JaxbSun extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JaxbSun.NamespaceFilter |
| Constructor and Description |
|---|
JaxbSun() |
| Modifier and Type | Method and Description |
|---|---|
static <T> String |
marshal(Class<T> type,
Object object) |
static <T> Object |
unmarshal(Class<T> type,
InputStream in) |
static <T> Object |
unmarshal(Class<T> type,
InputStream in,
boolean logErrors) |
public static <T> String marshal(Class<T> type, Object object) throws JAXBException
JAXBExceptionpublic static <T> Object unmarshal(Class<T> type, InputStream in) throws ParserConfigurationException, SAXException, JAXBException
public static <T> Object unmarshal(Class<T> type, InputStream in, boolean logErrors) throws ParserConfigurationException, SAXException, JAXBException
Copyright © 1999–2020 The Apache Software Foundation. All rights reserved.