Package proguard.io

Class FilteredDataEntryReader

java.lang.Object
proguard.io.FilteredDataEntryReader
All Implemented Interfaces:
DataEntryReader
Direct Known Subclasses:
ClassFilter, DirectoryFilter, NameFilteredDataEntryReader

public class FilteredDataEntryReader extends Object implements DataEntryReader
This DataEntryReader delegates to one of two other DataEntryReader instances, depending on whether the data entry passes through a given data entry filter or not.
  • Constructor Details

    • FilteredDataEntryReader

      public FilteredDataEntryReader(DataEntryFilter dataEntryFilter, DataEntryReader acceptedDataEntryReader)
      Creates a new FilteredDataEntryReader with only a reader for accepted data entries.
      Parameters:
      dataEntryFilter - the data entry filter.
      acceptedDataEntryReader - the DataEntryReader to which the reading will be delegated if the filter accepts the data entry. May be null.
    • FilteredDataEntryReader

      public FilteredDataEntryReader(DataEntryFilter dataEntryFilter, DataEntryReader acceptedDataEntryReader, DataEntryReader rejectedDataEntryReader)
      Creates a new FilteredDataEntryReader.
      Parameters:
      dataEntryFilter - the data entry filter.
      acceptedDataEntryReader - the DataEntryReader to which the reading will be delegated if the filter accepts the data entry. May be null.
      rejectedDataEntryReader - the DataEntryReader to which the reading will be delegated if the filter does not accept the data entry. May be null.
  • Method Details