Package proguard.io

Class RenamedDataEntryReader

    • Constructor Detail

      • RenamedDataEntryReader

        public RenamedDataEntryReader​(StringFunction nameFunction,
                                      DataEntryReader dataEntryReader)
        Creates a new RenamedDataEntryReader.
        Parameters:
        nameFunction - the function from old names to new names.
        dataEntryReader - the DataEntryReader to which renamed data entries will be passed.
      • RenamedDataEntryReader

        public RenamedDataEntryReader​(StringFunction nameFunction,
                                      DataEntryReader dataEntryReader,
                                      DataEntryReader missingDataEntryReader)
        Creates a new RenamedDataEntryReader.
        Parameters:
        nameFunction - the function from old names to new names.
        dataEntryReader - the DataEntryReader to which renamed data entries will be passed.
        missingDataEntryReader - the optional DataEntryReader to which data entries that can't be renamed will be passed.
    • 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