@Service public class XMLUnmarshaller extends Object
| Constructor and Description |
|---|
XMLUnmarshaller() |
| Modifier and Type | Method and Description |
|---|---|
String |
getXMLRootNamespace(Class clazz)
Return the namespace value of @XmlRootElement
|
<T> T |
unmarshall(InputStream data,
Class<T> clazz)
Unmarshall an object event if the string doesn't contain
namespaces on root element from InputStream
|
<T> T |
unmarshall(String data,
Class<T> clazz)
Unmarshall an object event if the string doesn't contain
namespaces on root element from String
|
<T> T |
unmarshallNamespaceAware(InputStream data,
Class<T> clazz)
Unmarshall an object event if the string doesn't contain
namespaces on root element from InputStream
|
public <T> T unmarshall(String data, Class<T> clazz) throws JAXBException, IOException, SAXException
T - data - clazz - JAXBExceptionIOExceptionSAXExceptionpublic <T> T unmarshall(InputStream data, Class<T> clazz) throws JAXBException, IOException, SAXException
T - data - clazz - JAXBExceptionIOExceptionSAXExceptionpublic <T> T unmarshallNamespaceAware(InputStream data, Class<T> clazz) throws JAXBException, IOException, SAXException
T - data - clazz - JAXBExceptionIOExceptionSAXExceptionCopyright © 2014. All Rights Reserved.