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> String
marshal(T object)
static <T> String
marshalThrows(T object)
static <T> T
unmarshal(InputStream is, Class<T> type)
static <T> T
unmarshal(String string, Class<T> type)
static <T> T
unmarshalThrows(InputStream is, Class<T> type)
static <T> T
unmarshalThrows(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
-
-