Package org.orekit.data
Class FilesListCrawler
- java.lang.Object
-
- org.orekit.data.AbstractListCrawler<File>
-
- org.orekit.data.FilesListCrawler
-
- All Implemented Interfaces:
DataProvider
public class FilesListCrawler extends AbstractListCrawler<File>
Provider for data files in an explicit list.Zip archives entries are supported recursively.
This is a simple application of the
visitordesign pattern for list browsing.- Since:
- 10.1
- Author:
- Luc Maisonobe
- See Also:
DataProvidersManager
-
-
Field Summary
-
Fields inherited from interface org.orekit.data.DataProvider
ZIP_ARCHIVE_PATTERN
-
-
Constructor Summary
Constructors Constructor Description FilesListCrawler(File... inputs)Build a data classpath crawler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetBaseName(File input)Get the base name of an input.protected StringgetCompleteName(File input)Get the complete name of a input.protected InputStreamgetStream(File input)Get the stream to read from an input.protected ZipJarCrawlergetZipJarCrawler(File input)Get a zip/jar crawler for an input.-
Methods inherited from class org.orekit.data.AbstractListCrawler
addInput, feed, getInputs
-
-
-
-
Constructor Detail
-
FilesListCrawler
public FilesListCrawler(File... inputs)
Build a data classpath crawler.The default timeout is set to 10 seconds.
- Parameters:
inputs- list of input files
-
-
Method Detail
-
getCompleteName
protected String getCompleteName(File input)
Get the complete name of a input.- Specified by:
getCompleteNamein classAbstractListCrawler<File>- Parameters:
input- input to consider- Returns:
- complete name of the input
-
getBaseName
protected String getBaseName(File input)
Get the base name of an input.- Specified by:
getBaseNamein classAbstractListCrawler<File>- Parameters:
input- input to consider- Returns:
- base name of the input
-
getZipJarCrawler
protected ZipJarCrawler getZipJarCrawler(File input)
Get a zip/jar crawler for an input.- Specified by:
getZipJarCrawlerin classAbstractListCrawler<File>- Parameters:
input- input to consider- Returns:
- zip/jar crawler for an input
-
getStream
protected InputStream getStream(File input) throws IOException
Get the stream to read from an input.- Specified by:
getStreamin classAbstractListCrawler<File>- Parameters:
input- input to read from- Returns:
- stream to read the content of the input
- Throws:
IOException- if the input cannot be opened for reading
-
-