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 java.lang.Object implements DataEntryReader
ThisDataEntryReader
delegates to one of two otherDataEntryReader
instances, depending on whether the data entry passes through a given data entry filter or not.
-
-
Constructor Summary
Constructors Constructor Description FilteredDataEntryReader(DataEntryFilter dataEntryFilter, DataEntryReader acceptedDataEntryReader)
Creates a new FilteredDataEntryReader with only a reader for accepted data entries.FilteredDataEntryReader(DataEntryFilter dataEntryFilter, DataEntryReader acceptedDataEntryReader, DataEntryReader rejectedDataEntryReader)
Creates a new FilteredDataEntryReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
read(DataEntry dataEntry)
Reads the given data entry.
-
-
-
Constructor Detail
-
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 benull
.
-
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 benull
.rejectedDataEntryReader
- the DataEntryReader to which the reading will be delegated if the filter does not accept the data entry. May benull
.
-
-
Method Detail
-
read
public void read(DataEntry dataEntry) throws java.io.IOException
Description copied from interface:DataEntryReader
Reads the given data entry.- Specified by:
read
in interfaceDataEntryReader
- Throws:
java.io.IOException
-
-