org.opennms.netmgt.dao.jaxb
Class JaxbUtils

java.lang.Object
  extended by org.opennms.netmgt.dao.jaxb.JaxbUtils

public class JaxbUtils
extends Object


Constructor Summary
JaxbUtils()
           
 
Method Summary
static
<T> T
unmarshal(Class<T> clazz, InputStream in)
           
static
<T> T
unmarshal(Class<T> clazz, Reader reader)
           
static
<T> T
unmarshal(Class<T> clazz, org.springframework.core.io.Resource resource)
           
static
<T> T
unmarshalWithTranslatedExceptions(Class<T> clazz, InputStream in)
           
static
<T> T
unmarshalWithTranslatedExceptions(Class<T> clazz, Reader reader)
           
static
<T> T
unmarshalWithTranslatedExceptions(Class<T> clazz, org.springframework.core.io.Resource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxbUtils

public JaxbUtils()
Method Detail

unmarshal

public static <T> T unmarshal(Class<T> clazz,
                              Reader reader)
                   throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

unmarshal

public static <T> T unmarshal(Class<T> clazz,
                              InputStream in)
                   throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

unmarshal

public static <T> T unmarshal(Class<T> clazz,
                              org.springframework.core.io.Resource resource)
                   throws javax.xml.bind.JAXBException,
                          IOException
Throws:
javax.xml.bind.JAXBException
IOException

unmarshalWithTranslatedExceptions

public static <T> T unmarshalWithTranslatedExceptions(Class<T> clazz,
                                                      Reader reader)
                                           throws org.springframework.dao.DataAccessException
Throws:
org.springframework.dao.DataAccessException

unmarshalWithTranslatedExceptions

public static <T> T unmarshalWithTranslatedExceptions(Class<T> clazz,
                                                      InputStream in)
                                           throws org.springframework.dao.DataAccessException
Throws:
org.springframework.dao.DataAccessException

unmarshalWithTranslatedExceptions

public static <T> T unmarshalWithTranslatedExceptions(Class<T> clazz,
                                                      org.springframework.core.io.Resource resource)


Copyright © 2011. All Rights Reserved.