Class JAXBUtils

java.lang.Object
com.labs64.netlicensing.util.JAXBUtils

public final class JAXBUtils extends Object
  • 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

      public static <T> String xmlEntityToString(T entity)