Interface ResourceFetcher

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void connect​(java.lang.String id, java.lang.String url)
      Connect and start transfer session
      void disconnect()
      Disconnect and complete transfer session
      java.io.InputStream retrieve​(java.lang.String name)
      Retrieves resource as InputStream
    • Method Detail

      • connect

        void connect​(java.lang.String id,
                     java.lang.String url)
              throws java.io.IOException
        Connect and start transfer session
        Throws:
        java.io.IOException
      • disconnect

        void disconnect()
                 throws java.io.IOException
        Disconnect and complete transfer session
        Throws:
        java.io.IOException
      • retrieve

        java.io.InputStream retrieve​(java.lang.String name)
                              throws java.io.IOException,
                                     java.io.FileNotFoundException
        Retrieves resource as InputStream
        Parameters:
        name - a name of resource to retrieve
        Throws:
        java.io.IOException
        java.io.FileNotFoundException