org.apache.openejb.jee.jpa
Class JpaJaxbUtil

java.lang.Object
  extended by org.apache.openejb.jee.jpa.JpaJaxbUtil

public class JpaJaxbUtil
extends Object

Version:
$Rev: 668883 $ $Date: 2008-06-18 00:36:10 +0000 (Wed, 18 Jun 2008) $

Constructor Summary
JpaJaxbUtil()
           
 
Method Summary
static
<T> String
marshal(Class<T> type, Object object)
           
static
<T> void
marshal(Class<T> type, Object object, OutputStream out)
           
static
<T> Object
unmarshal(Class<T> type, InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaJaxbUtil

public JpaJaxbUtil()
Method Detail

marshal

public static <T> String marshal(Class<T> type,
                                 Object object)
                      throws JAXBException
Throws:
JAXBException

marshal

public static <T> void marshal(Class<T> type,
                               Object object,
                               OutputStream out)
                    throws JAXBException
Throws:
JAXBException

unmarshal

public static <T> Object unmarshal(Class<T> type,
                                   InputStream in)
                        throws ParserConfigurationException,
                               SAXException,
                               JAXBException
Throws:
ParserConfigurationException
SAXException
JAXBException


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.