com.eurotech.framework.core.util
Class XmlUtil

java.lang.Object
  extended by com.eurotech.framework.core.util.XmlUtil

public class XmlUtil
extends Object


Constructor Summary
XmlUtil()
           
 
Method Summary
static String marshal(Object object)
           
static void marshal(Object object, Writer w)
           
static
<T> T
unmarshal(Reader r, Class<T> clazz)
           
static
<T> T
unmarshal(String s, Class<T> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlUtil

public XmlUtil()
Method Detail

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.