com.ibm.di.util
Class JAXBUtils
java.lang.Object
com.ibm.di.util.JAXBUtils
public class JAXBUtils
- extends 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXBUtils
public JAXBUtils()
serializeObject
public static String serializeObject(Object o)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
serializeObject
public static String serializeObject(Object o,
javax.xml.bind.Marshaller m)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
serializeObjectToBytes
public static byte[] serializeObjectToBytes(Object o)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
serializeObjectToBytes
public static byte[] serializeObjectToBytes(Object o,
javax.xml.bind.Marshaller m)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
serializeObjectToStream
public static void serializeObjectToStream(Object o,
OutputStream os)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
serializeObjectToStream
public static void serializeObjectToStream(Object o,
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,
Class<T> c)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
deserializeObject
public static <T> T deserializeObject(String o,
Class<T> c)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
deserializeObjectFromBytes
public static Object deserializeObjectFromBytes(byte[] o,
javax.xml.bind.Unmarshaller um)
deserializeObject
public static Object deserializeObject(String o,
javax.xml.bind.Unmarshaller um)