gov.nasa.pds.validate.crawler
Class FileCrawler

java.lang.Object
  extended by gov.nasa.pds.validate.crawler.Crawler
      extended by gov.nasa.pds.validate.crawler.FileCrawler

public class FileCrawler
extends Crawler

Class that crawls a given file url.

Author:
mcayanan

Field Summary
 
Fields inherited from class gov.nasa.pds.validate.crawler.Crawler
directoryFilter, fileFilter, getDirectories
 
Constructor Summary
FileCrawler(boolean getDirectories, List<String> fileFilters)
           
 
Method Summary
 List<Target> crawl(URL fileUrl)
          Crawl a given directory url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCrawler

public FileCrawler(boolean getDirectories,
                   List<String> fileFilters)
Method Detail

crawl

public List<Target> crawl(URL fileUrl)
                   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


Copyright © 2010–2015 Planetary Data System. All rights reserved.