Package proguard.io
Class PrioritizingJarReader
- java.lang.Object
-
- proguard.io.JarReader
-
- proguard.io.PrioritizingJarReader
-
- All Implemented Interfaces:
DataEntryReader
public class PrioritizingJarReader extends JarReader
ThisJarReader
lets a givenDataEntryReader
read all data entries of the read archive data entries in an order that respects a set of given priorities.
-
-
Constructor Summary
Constructors Constructor Description PrioritizingJarReader(java.util.Map<java.lang.String,java.lang.Integer> priorityMap, boolean jmod, DataEntryReader dataEntryReader)
Creates a newPrioritizingJarReader
that delegates reads to the givenDataEntryReader
in the order decided by the given priority map.PrioritizingJarReader(java.util.Map<java.lang.String,java.lang.Integer> priorityMap, DataEntryReader dataEntryReader)
Creates a newPrioritizingJarReader
that delegates reads to the givenDataEntryReader
in the order decided by the given priority map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
read(DataEntry dataEntry)
Reads the given data entry.
-
-
-
Constructor Detail
-
PrioritizingJarReader
public PrioritizingJarReader(java.util.Map<java.lang.String,java.lang.Integer> priorityMap, DataEntryReader dataEntryReader)
Creates a newPrioritizingJarReader
that delegates reads to the givenDataEntryReader
in 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(java.util.Map<java.lang.String,java.lang.Integer> priorityMap, boolean jmod, DataEntryReader dataEntryReader)
Creates a newPrioritizingJarReader
that delegates reads to the givenDataEntryReader
in 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 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
- Overrides:
read
in classJarReader
- Throws:
java.io.IOException
-
-