au.gov.nehta.vendorlibrary.pcehr.clients.common.util
Class JAXBUtils

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.pcehr.clients.common.util.JAXBUtils

public final class JAXBUtils
extends java.lang.Object

JAXB helper utility methods.


Method Summary
static void marshal(javax.xml.bind.JAXBElement<?> obj, java.io.OutputStream os)
          Marshal JAXB element.
static void marshal(java.lang.Object obj, java.io.OutputStream os)
          Marshal object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

marshal

public static void marshal(javax.xml.bind.JAXBElement<?> obj,
                           java.io.OutputStream os)
                    throws javax.xml.bind.JAXBException
Marshal JAXB element.

Parameters:
obj - element to marshal.
os - output of marshaled element.
Throws:
javax.xml.bind.JAXBException - thrown in the event that the object cannot be marshaled.

marshal

public static void marshal(java.lang.Object obj,
                           java.io.OutputStream os)
                    throws javax.xml.bind.JAXBException
Marshal object.

Parameters:
obj - object to marshal.
os - output of marshaled element.
Throws:
javax.xml.bind.JAXBException - thrown in the event that the object cannot be marshaled.