Interface FileRetrieve

  • All Known Implementing Classes:
    FileRetrieveImpl

    public interface FileRetrieve
    • Method Detail

      • processFromHref

        void processFromHref​(java.lang.String href,
                             ReadingProcessor processor)
                      throws java.io.IOException
        Process content from a given URL. using URL.openStream()
        Parameters:
        href - the URL to process
        processor - the ReadingProcessor
        Throws:
        java.io.IOException - if something went wrong.
      • processFromStream

        void processFromStream​(java.io.InputStream in,
                               ReadingProcessor processor)
                        throws java.io.IOException
        Process content from a given stream.
        Parameters:
        in - the stream to process
        processor - the ReadingProcessor
        Throws:
        java.io.IOException - if something went wrong.