Package proguard.io
Class PrioritizingJarReader
java.lang.Object
proguard.io.JarReader
proguard.io.PrioritizingJarReader
- All Implemented Interfaces:
DataEntryReader
This
JarReader lets a given DataEntryReader read all data entries of the read
archive data entries in an order that respects a set of given priorities.-
Constructor Summary
ConstructorsConstructorDescriptionPrioritizingJarReader(Map<String, Integer> priorityMap, boolean jmod, DataEntryReader dataEntryReader) Creates a newPrioritizingJarReaderthat delegates reads to the givenDataEntryReaderin the order decided by the given priority map.PrioritizingJarReader(Map<String, Integer> priorityMap, DataEntryReader dataEntryReader) Creates a newPrioritizingJarReaderthat delegates reads to the givenDataEntryReaderin the order decided by the given priority map. -
Method Summary
-
Constructor Details
-
PrioritizingJarReader
Creates a newPrioritizingJarReaderthat delegates reads to the givenDataEntryReaderin the order decided by the given priority map.- Parameters:
priorityMap- a map linking filters to priority values. Lower priority values mean higher reading priority. The priority of entries that don't match any filters defaults to 0.dataEntryReader- the reader that can process the jar entries.
-
PrioritizingJarReader
public PrioritizingJarReader(Map<String, Integer> priorityMap, boolean jmod, DataEntryReader dataEntryReader) Creates a newPrioritizingJarReaderthat delegates reads to the givenDataEntryReaderin the order decided by the given priority map. This reader can optionally read jmod files.- Parameters:
priorityMap- a map linking filters to priority values. Lower priority values mean higher reading priority. The priority of entries that don't match any filters defaults to 0.jmod- specifies whether the input jar is actually a jmod file.dataEntryReader- the reader that can process the jar entries.
-
-
Method Details
-
read
Description copied from interface:DataEntryReaderReads the given data entry.- Specified by:
readin interfaceDataEntryReader- Overrides:
readin classJarReader- Throws:
IOException
-