Class JAXBUtil
java.lang.Object
de.uni_trier.wi2.procake.utils.conversion.xml.JAXBUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
marshall
(OutputStream outputStream, Object object) static String
static <T> T
unmarshall
(InputStream inputStream, Class<T>... classes) static <T> T
unmarshall
(String xml, Class<T> classes) static <T> T
unmarshall
(Element domElement, Class<T>... classes)
-
Constructor Details
-
JAXBUtil
public JAXBUtil()
-
-
Method Details
-
marshall
- Throws:
jakarta.xml.bind.JAXBException
-
marshall
public static void marshall(OutputStream outputStream, Object object) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
unmarshall
- Throws:
jakarta.xml.bind.JAXBException
-
unmarshall
@SafeVarargs public static <T> T unmarshall(InputStream inputStream, Class<T>... classes) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
unmarshall
public static <T> T unmarshall(Element domElement, Class<T>... classes) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-