Class FileCrawler

java.lang.Object
gov.nasa.pds.tools.validate.crawler.Crawler
gov.nasa.pds.tools.validate.crawler.FileCrawler

public class FileCrawler
extends Crawler
Class that crawls a given file url.
Author:
mcayanan
  • Constructor Details

    • FileCrawler

      public FileCrawler()
  • Method Details

    • crawl

      public List<Target> crawl​(URL fileUrl, boolean getDirectories, org.apache.commons.io.filefilter.IOFileFilter fileFilter) throws IOException
      Crawl a given directory url.
      Specified by:
      crawl in class Crawler
      Parameters:
      fileUrl - File url.
      Returns:
      A list of files and sub-directories (if found and if getSubDirectories flag is 'true').
      Throws:
      IOException
    • crawl

      public List<Target> crawl​(URL fileUrl, String[] extensions, boolean getDirectories, String nameToken) throws IOException
      Overrides:
      crawl in class Crawler
      Throws:
      IOException