Class OpenAIREHandler


  • public class OpenAIREHandler
    extends Object
    This Class handles the Marshaling from provided sources like URL or InputStream
    Author:
    dpie, pgraca
    • Constructor Detail

      • OpenAIREHandler

        public OpenAIREHandler()
    • Method Detail

      • marshal

        public static void marshal​(Response response,
                                   File selectedFile)
                            throws IOException,
                                   javax.xml.bind.JAXBException
        Throws:
        IOException
        javax.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