APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.jimage

public Class SystemImageReader

extends Object
Class Inheritance
Imports
java.io.IOException, .UncheckedIOException, java.nio.file.FileSystem, .FileSystems

Static holder class for singleton ImageReader instance.

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.

Field Summary

Modifier and TypeField and Description
private static final ImageReader

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ImageReader
get()

Returns the singleton ImageReader to read the image file in this run-time image.

public static ResourceEntries
getResourceEntries()

Returns the "raw" API for accessing underlying jimage resource entries.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SYSTEM_IMAGE_READERback to summary
private static final ImageReader SYSTEM_IMAGE_READER

Constructor Detail

SystemImageReaderback to summary
private SystemImageReader()

Method Detail

getback to summary
public static ImageReader get()

Returns the singleton ImageReader to read the image file in this run-time image. The returned instance must not be closed.

Exceptions
UncheckedIOException:
if an I/O error occurs
getResourceEntriesback to summary
public static ResourceEntries getResourceEntries()

Returns the "raw" API for accessing underlying jimage resource entries.

This is only meaningful for use by code dealing directly with jimage files, and cannot be used to reliably lookup resources used at runtime.