Package proguard.io

Class FilteredDataEntryReader

    • 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 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 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 interface DataEntryReader
        Throws:
        java.io.IOException