Class JAXBUtils


  • public class JAXBUtils
    extends java.lang.Object


    Note: This class is for internal usage only. Any dependency from the end-user will not be supported. Changes to this class will happen without a warning.
    Since:
    7.2
    • Constructor Detail

      • JAXBUtils

        public JAXBUtils()
    • Method Detail

      • serializeObject

        public static java.lang.String serializeObject​(java.lang.Object o)
                                                throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • serializeObject

        public static java.lang.String serializeObject​(java.lang.Object o,
                                                       javax.xml.bind.Marshaller m)
                                                throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • serializeObjectToBytes

        public static byte[] serializeObjectToBytes​(java.lang.Object o)
                                             throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • serializeObjectToBytes

        public static byte[] serializeObjectToBytes​(java.lang.Object o,
                                                    javax.xml.bind.Marshaller m)
                                             throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • serializeObjectToStream

        public static void serializeObjectToStream​(java.lang.Object o,
                                                   java.io.OutputStream os)
                                            throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • serializeObjectToStream

        public static void serializeObjectToStream​(java.lang.Object o,
                                                   java.io.OutputStream os,
                                                   javax.xml.bind.Marshaller m)
                                            throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • deserializeObjectFromBytes

        public static <T> T deserializeObjectFromBytes​(byte[] o,
                                                       java.lang.Class<T> c)
                                                throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • deserializeObject

        public static <T> T deserializeObject​(java.lang.String o,
                                              java.lang.Class<T> c)
                                       throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • deserializeObjectFromBytes

        public static java.lang.Object deserializeObjectFromBytes​(byte[] o,
                                                                  javax.xml.bind.Unmarshaller um)
      • deserializeObject

        public static java.lang.Object deserializeObject​(java.lang.String o,
                                                         javax.xml.bind.Unmarshaller um)