Class FiltersManager

    • Constructor Detail

      • FiltersManager

        public FiltersManager()
        Build an empty manager.
    • Method Detail

      • 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()