com.eurotech.framework.core.util
Class XmlUtil
java.lang.Object
com.eurotech.framework.core.util.XmlUtil
public class XmlUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlUtil
public XmlUtil()
marshal
public static String marshal(Object object)
throws JAXBException
- Throws:
JAXBException
marshal
public static void marshal(Object object,
Writer w)
throws JAXBException
- Throws:
JAXBException
unmarshal
public static <T> T unmarshal(String s,
Class<T> clazz)
throws JAXBException,
XMLStreamException,
FactoryConfigurationError
- Throws:
JAXBException
XMLStreamException
FactoryConfigurationError
unmarshal
public static <T> T unmarshal(Reader r,
Class<T> clazz)
throws JAXBException,
XMLStreamException,
FactoryConfigurationError
- Throws:
JAXBException
XMLStreamException
FactoryConfigurationError
Copyright © 2013. All Rights Reserved.