程序包 proguard.io

类 FilteredDataEntryWriter

java.lang.Object
proguard.io.FilteredDataEntryWriter
所有已实现的接口:
AutoCloseable, DataEntryWriter
直接已知子类:
NameFilteredDataEntryWriter

public class FilteredDataEntryWriter extends Object implements DataEntryWriter
This DataEntryWriter delegates to one of two other DataEntryWriter instances, depending on whether the data entry passes through a given data entry filter or not.
  • 构造器详细资料

    • FilteredDataEntryWriter

      public FilteredDataEntryWriter(DataEntryFilter dataEntryFilter, DataEntryWriter acceptedDataEntryWriter)
      Creates a new FilteredDataEntryWriter with only a writer for accepted data entries.
      参数:
      dataEntryFilter - the data entry filter.
      acceptedDataEntryWriter - the DataEntryWriter to which the writing will be delegated if the filter accepts the data entry. May be null.
    • FilteredDataEntryWriter

      public FilteredDataEntryWriter(DataEntryFilter dataEntryFilter, DataEntryWriter acceptedDataEntryWriter, DataEntryWriter rejectedDataEntryWriter)
      Creates a new FilteredDataEntryWriter.
      参数:
      dataEntryFilter - the data entry filter.
      acceptedDataEntryWriter - the DataEntryWriter to which the writing will be delegated if the filter accepts the data entry. May be null.
      rejectedDataEntryWriter - the DataEntryWriter to which the writing will be delegated if the filter does not accept the data entry. May be null.
  • 方法详细资料