Package eu.openaire.jaxb.helper
Class OpenAIREHandler
- java.lang.Object
-
- eu.openaire.jaxb.helper.OpenAIREHandler
-
public class OpenAIREHandler extends Object
This Class handles the Marshaling from provided sources like URL or InputStream- Author:
- dpie, pgraca
-
-
Constructor Summary
Constructors Constructor Description OpenAIREHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmarshal(Response response, File selectedFile)static Responseunmarshal(InputStream iStream)Unmarshal and returns a Response from an InputStreamstatic Responseunmarshal(URL importFile)
-
-
-
Method Detail
-
marshal
public static void marshal(Response response, File selectedFile) throws IOException, javax.xml.bind.JAXBException
- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
unmarshal
public static Response unmarshal(URL importFile) throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
unmarshal
public static Response unmarshal(InputStream iStream) throws javax.xml.bind.JAXBException
Unmarshal and returns a Response from an InputStream- Parameters:
iStream-- Returns:
- Throws:
javax.xml.bind.JAXBException
-
-