Package proguard.io
Class RenamedDataEntryReader
- java.lang.Object
-
- proguard.io.RenamedDataEntryReader
-
- All Implemented Interfaces:
DataEntryReader
public class RenamedDataEntryReader extends java.lang.Object implements DataEntryReader
ThisDataEntryReader
delegates to anotherDataEntryReader
, renaming the data entries based on the given string function. Entries whose name are transformed to null or an empty string are passed to an optional alternativeDataEntryReader
.
-
-
Constructor Summary
Constructors Constructor Description RenamedDataEntryReader(StringFunction nameFunction, DataEntryReader dataEntryReader)
Creates a new RenamedDataEntryReader.RenamedDataEntryReader(StringFunction nameFunction, DataEntryReader dataEntryReader, DataEntryReader missingDataEntryReader)
Creates a new RenamedDataEntryReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
read(DataEntry dataEntry)
Reads the given data entry.
-
-
-
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 interfaceDataEntryReader
- Throws:
java.io.IOException
-
-