Package ejava.util.jaxb
Class JAXBUtil
- java.lang.Object
-
- ejava.util.jaxb.JAXBUtil
-
public class JAXBUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description JAXBUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Stringmarshal(T object)static <T> StringmarshalThrows(T object)static <T> Tunmarshal(InputStream is, Class<T> type)static <T> Tunmarshal(String string, Class<T> type)static <T> TunmarshalThrows(InputStream is, Class<T> type)static <T> TunmarshalThrows(String string, Class<T> type)
-
-
-
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(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
-
-