@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 |
unmarshal(InputStream data,
Class<T> clazz)
Unmarshall an object event if the string doesn't contain
namespaces on root element from InputStream
|
<T> T |
unmarshal(String data,
Class<T> clazz)
Unmarshall an object event if the string doesn't contain
namespaces on root element from String
|
<T> T |
unmarshalNamespaceAware(InputStream data,
Class<T> clazz)
Unmarshall an object event if the string doesn't contain
namespaces on root element from InputStream
|
public <T> T unmarshal(String data, Class<T> clazz) throws JAXBException, IOException, SAXException
T - - Class of the objectdata - - String - marshalled object to unmarshalclazz - - Class of the objectJAXBExceptionIOExceptionSAXExceptionpublic <T> T unmarshal(InputStream data, Class<T> clazz) throws JAXBException, IOException, SAXException
T - - Class of the objectdata - - String - marshalled object to unmarshalclazz - - Class of the objectJAXBExceptionIOExceptionSAXExceptionpublic <T> T unmarshalNamespaceAware(InputStream data, Class<T> clazz) throws JAXBException, IOException, SAXException
T - - Class of the objectdata - - String - marshalled object to unmarshalclazz - - Class of the objectJAXBExceptionIOExceptionSAXExceptionCopyright © 2014. All Rights Reserved.