Package org.orekit.data
Class FiltersManager
- java.lang.Object
-
- org.orekit.data.FiltersManager
-
public class FiltersManager extends Object
Manager fordata filters
.This manager holds a set of filters and applies all the relevant ones by building a stack that transforms a raw
DataSource
into a processedDataSource
.- Since:
- 11.0
- Author:
- Luc Maisonobe
- See Also:
DataSource
,DataFilter
-
-
Constructor Summary
Constructors Constructor Description FiltersManager()
Build an empty manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFilter(DataFilter filter)
Add a data filter.DataSource
applyRelevantFilters(DataSource original)
Apply all the relevant data filters, taking care of layers.void
clearFilters()
Remove all data filters.
-
-
-
Method Detail
-
addFilter
public void addFilter(DataFilter filter)
Add a data filter.- Parameters:
filter
- filter to add- See Also:
applyRelevantFilters(DataSource)
,clearFilters()
-
clearFilters
public void clearFilters()
Remove all data filters.- See Also:
addFilter(DataFilter)
-
applyRelevantFilters
public DataSource applyRelevantFilters(DataSource original) throws IOException
Apply all the relevant data filters, taking care of layers.If several filters can be applied, they will all be applied as a stack, even recursively if required. This means that if filter A applies to files with names of the form base.ext.a and filter B applies to files with names of the form base.ext.b, then providing base.ext.a.b.a will result in filter A being applied on top of filter B which itself is applied on top of another instance of filter A.
- Parameters:
original
- original data source- Returns:
- fully filtered data source
- Throws:
IOException
- if some data stream cannot be filtered- Since:
- 9.2
- See Also:
addFilter(DataFilter)
,clearFilters()
-
-