Class JAXBUtil


  • public class JAXBUtil
    extends Object
    • Constructor Detail

      • JAXBUtil

        public JAXBUtil()
    • Method Detail

      • marshal

        public static <T> String marshal​(T object)
      • marshalThrows

        public static <T> String marshalThrows​(T object)
                                        throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • unmarshal

        public static <T> T unmarshal​(String string,
                                      Class<T> type)
      • unmarshal

        public static <T> T unmarshal​(InputStream is,
                                      Class<T> type)
      • unmarshalThrows

        public static <T> T unmarshalThrows​(String string,
                                            Class<T> type)
                                     throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • unmarshalThrows

        public static <T> T unmarshalThrows​(InputStream is,
                                            Class<T> type)
                                     throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException