| Modifier and Type | Class and Description |
|---|---|
| pack-priv static record | |
| pack-priv static interface | |
| pack-priv static record | |
| public static record |
| Modifier and Type | Field and Description |
|---|---|
| private static final Path | |
| private final boolean | |
| private final List | |
| private final ResourceEntries | |
| private final String | |
| private final List | |
| private final Path | |
| private final Map | |
| private final TaskHelper | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv | JRTArchive(String
The module name this archive refers to module, Path The JRT filesystem path. path, boolean Whether or not modified files of the JDK
install aborts the link. errorOnModifiedFile, List<ResourceDiff> The lib/modules (a.k.a jimage) diff for this module,
possibly an empty list if there are no differences. perModDiff, TaskHelper The task helper instance. taskHelper, Set<String> The set of files that are allowed for upgrades. upgradeableFiles)JRTArchive constructor |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | close()
Implements jdk. Closes this stream and releases any system resources associated with it. |
| private void | |
| public Stream | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Path | |
| public int | |
| private boolean | |
| private boolean | Returns: true if the file is upgradeable. false otherwise.The resource path of the file to check for upgradeability. resPath)Certain files in a module are considered upgradeable. |
| public String | |
| public void | |
| private static List | |
| pack-priv static boolean | |
| private static Archive. |
| BASE | back to summary |
|---|---|
| private static final Path BASE | |
| errorOnModifiedFile | back to summary |
|---|---|
| private final boolean errorOnModifiedFile | |
| files | back to summary |
|---|---|
| private final List<JRTArchive. | |
| imageResources | back to summary |
|---|---|
| private final ResourceEntries imageResources | |
| module | back to summary |
|---|---|
| private final String module | |
| otherRes | back to summary |
|---|---|
| private final List<String> otherRes | |
| path | back to summary |
|---|---|
| private final Path path | |
| resDiff | back to summary |
|---|---|
| private final Map<String, ResourceDiff> resDiff | |
| taskHelper | back to summary |
|---|---|
| private final TaskHelper taskHelper | |
| upgradeableFiles | back to summary |
|---|---|
| private final Set<String> upgradeableFiles | |
| JRTArchive | back to summary |
|---|---|
| pack-priv JRTArchive(String module, Path path, boolean errorOnModifiedFile, List<ResourceDiff> perModDiff, TaskHelper taskHelper, Set<String> upgradeableFiles) JRTArchive constructor
| |
| addNonClassResources | back to summary |
|---|---|
| private void addNonClassResources() | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements jdk. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| collectFiles | back to summary |
|---|---|
| private void collectFiles() throws IOException | |
| entries | back to summary |
|---|---|
| public Stream Implements jdk.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getPath | back to summary |
|---|---|
| public Path getPath() Implements jdk.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isNormalOrModifiedDiff | back to summary |
|---|---|
| private boolean isNormalOrModifiedDiff(String name) | |
| isUpgradeableFile | back to summary |
|---|---|
| private boolean isUpgradeableFile(String resPath) Certain files in a module are considered upgradeable. That is, their hash sums aren't checked.
| |
| moduleName | back to summary |
|---|---|
| public String moduleName() Implements jdk.
| |
| open | back to summary |
|---|---|
| public void open() throws IOException Implements jdk.
| |
| readModuleResourceFile | back to summary |
|---|---|
| private static List | |
| shaSumMismatch | back to summary |
|---|---|
| pack-priv static boolean shaSumMismatch(Path res, String expectedSha, boolean isSymlink) | |
| toEntryType | back to summary |
|---|---|
| private static Archive. | |
| Modifier and Type | Field and Description |
|---|---|
| private final JRTArchive | |
| private final ResourceDiff | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public JRTArchive | |
| public ResourceDiff | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public String | |
| public Archive. | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| archive | back to summary |
|---|---|
| private final JRTArchive archive Record Component accessed by archive(). | |
| diff | back to summary |
|---|---|
| private final ResourceDiff diff Record Component accessed by diff(). | |
| resPath | back to summary |
|---|---|
| private final String resPath Record Component accessed by resPath(). | |
| JrtClassOrResource | back to summary |
|---|---|
| pack-priv JrtClassOrResource(JRTArchive archive, String resPath, ResourceDiff diff) | |
| archive | back to summary |
|---|---|
| public JRTArchive archive() Record Component getter of archive. | |
| diff | back to summary |
|---|---|
| public ResourceDiff diff() Record Component getter of diff. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| resPath | back to summary |
|---|---|
| public String resPath() Record Component getter of resPath. | |
| toEntry | back to summary |
|---|---|
| public Archive. Implements jdk.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| toEntry | back to summary |
|---|---|
| public Archive. | |
| Modifier and Type | Field and Description |
|---|---|
| private final JRTArchive | |
| private final String | |
| private final Archive. | |
| private final String | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | JrtOtherFile(JRTArchive archive, String resPath, Archive.
|
| Modifier and Type | Method and Description |
|---|---|
| public JRTArchive | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public String | |
| public Archive. | |
| public String | |
| public boolean | |
| pack-priv Path | |
| public Archive. | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| archive | back to summary |
|---|---|
| private final JRTArchive archive Record Component accessed by archive(). | |
| resPath | back to summary |
|---|---|
| private final String resPath Record Component accessed by resPath(). | |
| resType | back to summary |
|---|---|
| private final Archive. Record Component accessed by resType(). | |
| sha | back to summary |
|---|---|
| private final String sha Record Component accessed by sha(). | |
| symlink | back to summary |
|---|---|
| private final boolean symlink Record Component accessed by symlink(). | |
| JrtOtherFile | back to summary |
|---|---|
| pack-priv JrtOtherFile(JRTArchive archive, String resPath, Archive. | |
| archive | back to summary |
|---|---|
| public JRTArchive archive() Record Component getter of archive. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| resPath | back to summary |
|---|---|
| public String resPath() Record Component getter of resPath. | |
| resType | back to summary |
|---|---|
| public Archive. Record Component getter of resType. | |
| sha | back to summary |
|---|---|
| public String sha() Record Component getter of sha. | |
| symlink | back to summary |
|---|---|
| public boolean symlink() Record Component getter of symlink. | |
| targetPath | back to summary |
|---|---|
| pack-priv Path targetPath() | |
| toEntry | back to summary |
|---|---|
| public Archive. Implements jdk. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private final String | hashOrTarget
Record Component accessed by hashOrTarget(). |
| private static final String | |
| private final String | |
| private final ResourcePoolEntry. | |
| private final boolean | |
| private static final String | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public | ResourceFileEntry(ResourcePoolEntry.
|
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| pack-priv static JRTArchive. | |
| private static String | |
| public String | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public String | |
| private static boolean | |
| private static String | |
| public String | |
| public ResourcePoolEntry. | |
| public boolean | |
| public static JRTArchive. | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| BIN_DIRNAME | back to summary |
|---|---|
| private static final String BIN_DIRNAME | |
| hashOrTarget | back to summary |
|---|---|
| private final String hashOrTarget Record Component accessed by hashOrTarget(). | |
| LIB_DIRNAME | back to summary |
|---|---|
| private static final String LIB_DIRNAME | |
| resPath | back to summary |
|---|---|
| private final String resPath Record Component accessed by resPath(). | |
| resType | back to summary |
|---|---|
| private final ResourcePoolEntry. Record Component accessed by resType(). | |
| symlink | back to summary |
|---|---|
| private final boolean symlink Record Component accessed by symlink(). | |
| TYPE_FILE_FORMAT | back to summary |
|---|---|
| private static final String TYPE_FILE_FORMAT | |
| typeMap | back to summary |
|---|---|
| private static final Map<Integer, ResourcePoolEntry. | |
| ResourceFileEntry | back to summary |
|---|---|
| public ResourceFileEntry(ResourcePoolEntry. | |
| computeSha512 | back to summary |
|---|---|
| private static String computeSha512(ResourcePoolEntry entry) | |
| decodeFromString | back to summary |
|---|---|
| pack-priv static JRTArchive. | |
| dropModuleFromPath | back to summary |
|---|---|
| private static String dropModuleFromPath(ResourcePoolEntry entry, Platform platform) | |
| encodeToString | back to summary |
|---|---|
| public String encodeToString() | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| hashOrTarget | back to summary |
|---|---|
| public String hashOrTarget() Record Component getter of hashOrTarget. | |
| isWindows | back to summary |
|---|---|
| private static boolean isWindows(Platform platform) | |
| nativeDir | back to summary |
|---|---|
| private static String nativeDir(ResourcePoolEntry entry, String resPath) | |
| resPath | back to summary |
|---|---|
| public String resPath() Record Component getter of resPath. | |
| resType | back to summary |
|---|---|
| public ResourcePoolEntry. Record Component getter of resType. | |
| symlink | back to summary |
|---|---|
| public boolean symlink() Record Component getter of symlink. | |
| toResourceFileEntry | back to summary |
|---|---|
| public static JRTArchive. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |