Class JAXBUtil


  • public class JAXBUtil
    extends Object
    • Constructor Detail

      • JAXBUtil

        public JAXBUtil()
    • 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
      • unmarshall

        public static <T> T unmarshall​(Element domElement,
                                       Class<T>... classes)
                                throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException