Class JAXBUtil
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.conversion.xml.JAXBUtil
-
public class JAXBUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description JAXBUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmarshall(OutputStream outputStream, Object object)static Stringmarshall(Object object)static <T> Tunmarshall(InputStream inputStream, Class<T>... classes)static <T> Tunmarshall(String xml, Class<T> classes)static <T> Tunmarshall(Element domElement, Class<T>... classes)
-
-
-
Method Detail
-
marshall
public static String marshall(Object object) throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
marshall
public static void marshall(OutputStream outputStream, Object object) throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
unmarshall
public static <T> T unmarshall(String xml, Class<T> classes) throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
unmarshall
@SafeVarargs public static <T> T unmarshall(InputStream inputStream, Class<T>... classes) throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
-