Package proguard.io
Class JrtDataEntrySource
java.lang.Object
proguard.io.JrtDataEntrySource
- All Implemented Interfaces:
DataEntrySource
Data entry source which reads JDK classes using the
jrt:/ file system.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJrtDataEntrySource(Path javaHome, Path jrtFsJarPath, @Nullable String moduleName) -
Method Summary
Modifier and TypeMethodDescriptionvoidpumpDataEntries(DataEntryReader dataEntryReader) Applies the given DataEntryReader to all data entries that the implementation can provide.static @Nullable JrtDataEntrySourceTries to create an instance ofJrtDataEntrySource.
-
Constructor Details
-
JrtDataEntrySource
-
-
Method Details
-
tryCreate
@Nullable public static @Nullable JrtDataEntrySource tryCreate(Path javaHome, @Nullable @Nullable String moduleName) Tries to create an instance ofJrtDataEntrySource. ReturnsnullifjavaHomedoes not point to a valid JAVA_HOME which containslib/jrt-fs.jar.- Parameters:
javaHome- path to JAVA_HOME whose classes should be readmoduleName- name of the module whose classes should be read;nullto read the classes of all modules
-
pumpDataEntries
Description copied from interface:DataEntrySourceApplies the given DataEntryReader to all data entries that the implementation can provide.- Specified by:
pumpDataEntriesin interfaceDataEntrySource- Throws:
IOException
-