Class Extractor<T>
- java.lang.Object
-
- pt.rcaap.cienciavitae.curriculum.client.Extractor<T>
-
public class Extractor<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description Extractor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> voidmarshal(T object, Class<T> clazz, File selectedFile)Marshal a T into a filestatic <T> Tunmarshal(InputStream iStream, Class<T> clazz)Unmarshal and returns a T from an InputStreamstatic <T> Tunmarshal(URL importFile, Class<T> clazz)Unmarshal and returns a T from an URL
-
-
-
Method Detail
-
marshal
public static <T> void marshal(T object, Class<T> clazz, File selectedFile) throws IOException, JAXBExceptionMarshal a T into a file- Parameters:
search-selectedFile-- Throws:
IOExceptionJAXBException
-
unmarshal
public static <T> T unmarshal(URL importFile, Class<T> clazz) throws JAXBException
Unmarshal and returns a T from an URL- Parameters:
importFile-- Returns:
- Throws:
JAXBException
-
unmarshal
public static <T> T unmarshal(InputStream iStream, Class<T> clazz) throws JAXBException
Unmarshal and returns a T from an InputStream- Parameters:
iStream-- Returns:
- Throws:
JAXBException
-
-