Implementation Note
This class needs to maintain JDK 8 source compatibility. It is used internally in the JDK to implement jimage/jrtfs access, but also compiled and delivered as part of the jrtfs.jar to support access to the jimage file provided by the shipped JDK by tools running on JDK 8.
| Modifier and Type | Field and Description |
|---|---|
| private static final Path | |
| private static final Path | |
| private static final boolean | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | close()
Redeclares java. Closes this resource, relinquishing any underlying resources. |
| private static String | |
| public abstract ImageReader. | |
| public static SystemImage | fromDirectory(Path modulesDir, PreviewMode mode)
Internal factory method for testing only, use |
| public static SystemImage | fromJimage(Path path, PreviewMode mode)
Internal factory method for testing only, use |
| public abstract byte[] | |
| public static SystemImage | Returns: a new system image based on either the jimage file or an "exploded" modules directory, according to the build state.determines whether preview mode should be enabled. mode)Opens the system image for the current runtime. |
| explodedModulesDir | back to summary |
|---|---|
| private static final Path explodedModulesDir | |
| moduleImageFile | back to summary |
|---|---|
| private static final Path moduleImageFile | |
| modulesImageExists | back to summary |
|---|---|
| private static final boolean modulesImageExists | |
| RUNTIME_HOME | back to summary |
|---|---|
| private static final String RUNTIME_HOME | |
| SystemImage | back to summary |
|---|---|
| public SystemImage() | |
| close | back to summary |
|---|---|
| public abstract void close() throws IOException Redeclares java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| findHome | back to summary |
|---|---|
| private static String findHome() Returns the appropriate JDK home for this usage of the FileSystemProvider. When the CodeSource is null (null loader) then jrt:/ is the current runtime, otherwise the JDK home is located relative to jrt-fs.jar. | |
| findNode | back to summary |
|---|---|
| public abstract ImageReader. | |
| fromDirectory | back to summary |
|---|---|
| public static SystemImage fromDirectory(Path modulesDir, PreviewMode mode) throws IOException Internal factory method for testing only, use | |
| fromJimage | back to summary |
|---|---|
| public static SystemImage fromJimage(Path path, PreviewMode mode) throws IOException Internal factory method for testing only, use | |
| getResource | back to summary |
|---|---|
| public abstract byte[] getResource(ImageReader. | |
| open | back to summary |
|---|---|
| public static SystemImage open(PreviewMode mode) throws IOException Opens the system image for the current runtime.
| |