Package org.apache.tika.batch.fs
Class FSListCrawler
- java.lang.Object
- 
- org.apache.tika.batch.FileResourceCrawler
- 
- org.apache.tika.batch.fs.FSListCrawler
 
 
- 
- All Implemented Interfaces:
- Callable<IFileProcessorFutureResult>
 
 public class FSListCrawler extends FileResourceCrawler Class that "crawls" a list of files.
- 
- 
Field Summary- 
Fields inherited from class org.apache.tika.batch.FileResourceCrawlerADDED, LOG, SKIPPED, STOP_NOW
 
- 
 - 
Constructor SummaryConstructors Constructor Description FSListCrawler(ArrayBlockingQueue<FileResource> fileQueue, int numConsumers, Path root, Path list, Charset charset)Constructor for a crawler that reads a list of files to process.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart()Implement this to control the addition of FileResources.- 
Methods inherited from class org.apache.tika.batch.FileResourceCrawlercall, getAdded, getConsidered, isActive, isQueueEmpty, select, setDocumentSelector, setMaxConsecWaitInMillis, setMaxFilesToAdd, setMaxFilesToConsider, shutDownNoPoison, tryToAdd, wasTimedOut
 
- 
 
- 
- 
- 
Constructor Detail- 
FSListCrawlerpublic FSListCrawler(ArrayBlockingQueue<FileResource> fileQueue, int numConsumers, Path root, Path list, Charset charset) throws IOException Constructor for a crawler that reads a list of files to process.The list should be paths relative to the root. - Parameters:
- fileQueue- queue for batch
- numConsumers- number of consumers
- root- root input director
- list- text file list (one file per line) of paths relative to the root for processing
- charset- charset of the file
- Throws:
- IOException
 
 
- 
 - 
Method Detail- 
startpublic void start() throws InterruptedExceptionDescription copied from class:FileResourceCrawlerImplement this to control the addition of FileResources. CallFileResourceCrawler.tryToAdd(org.apache.tika.batch.FileResource)to add FileResources to the queue.- Specified by:
- startin class- FileResourceCrawler
- Throws:
- InterruptedException
 
 
- 
 
-