Package com.labs64.netlicensing.util
Class JAXBUtils
java.lang.Object
com.labs64.netlicensing.util.JAXBUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
readObject
(String resource, Class<T> expectedType) static <T> T
readObjectFromInputStream
(InputStream inputStream, Class<T> expectedType) static <T> T
readObjectFromString
(String content, Class<T> expectedType) static <T> String
xmlEntityToString
(T entity)
-
Constructor Details
-
JAXBUtils
public JAXBUtils()
-
-
Method Details
-
readObject
public static <T> T readObject(String resource, Class<T> expectedType) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
readObjectFromString
public static <T> T readObjectFromString(String content, Class<T> expectedType) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
readObjectFromInputStream
public static <T> T readObjectFromInputStream(InputStream inputStream, Class<T> expectedType) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
xmlEntityToString
-