Package org.orekit.data
Class FilesListCrawler
- All Implemented Interfaces:
DataProvider
Provider for data files in an explicit list.
Zip archives entries are supported recursively.
This is a simple application of the visitor design pattern for
list browsing.
- Since:
- 10.1
- Author:
- Luc Maisonobe
- See Also:
-
Field Summary
Fields inherited from interface org.orekit.data.DataProvider
ZIP_ARCHIVE_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetBaseName(File input) Get the base name of an input.protected StringgetCompleteName(File input) Get the complete name of a input.protected InputStreamGet 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 Details
-
FilesListCrawler
Build a data classpath crawler.The default timeout is set to 10 seconds.
- Parameters:
inputs- list of input files
-
-
Method Details
-
getCompleteName
Get the complete name of a input.- Specified by:
getCompleteNamein classAbstractListCrawler<File>- Parameters:
input- input to consider- Returns:
- complete name of the input
-
getBaseName
Get the base name of an input.- Specified by:
getBaseNamein classAbstractListCrawler<File>- Parameters:
input- input to consider- Returns:
- base name of the input
-
getZipJarCrawler
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
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
-