public class FilesListCrawler extends AbstractListCrawler<File>
Zip archives entries are supported recursively.
This is a simple application of the visitor
design pattern for
list browsing.
DataProvidersManager
ZIP_ARCHIVE_PATTERN
Constructor and Description |
---|
FilesListCrawler(File... inputs)
Build a data classpath crawler.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getBaseName(File input)
Get the base name of an input.
|
protected String |
getCompleteName(File input)
Get the complete name of a input.
|
protected InputStream |
getStream(File input)
Get the stream to read from an input.
|
protected ZipJarCrawler |
getZipJarCrawler(File input)
Get a zip/jar crawler for an input.
|
addInput, feed, getInputs
public FilesListCrawler(File... inputs)
The default timeout is set to 10 seconds.
inputs
- list of input filesprotected String getCompleteName(File input)
getCompleteName
in class AbstractListCrawler<File>
input
- input to considerprotected String getBaseName(File input)
getBaseName
in class AbstractListCrawler<File>
input
- input to considerprotected ZipJarCrawler getZipJarCrawler(File input)
getZipJarCrawler
in class AbstractListCrawler<File>
input
- input to considerprotected InputStream getStream(File input) throws IOException
getStream
in class AbstractListCrawler<File>
input
- input to read fromIOException
- if the input cannot be opened for readingCopyright © 2002-2022 CS GROUP. All rights reserved.