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 | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteOrder | |
| private final FileChannel | |
| private final Decompressor | |
| private final ImageHeader | |
| private final Path | |
| private final long | |
| private static final boolean | |
| private final ByteBuffer | |
| private static final boolean | |
| private final ByteBuffer | |
| private final String | |
| private final IntBuffer | |
| private final IntBuffer | |
| private final ByteBuffer | |
| private final ImageStringsReader | |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| public ImageLocation | |
| public ImageLocation | |
| public long[] | |
| private byte[] | |
| public ByteOrder | |
| public String[] | |
| public ImageHeader | |
| public Path | |
| pack-priv ImageLocation | |
| public int | |
| private int | |
| public String | |
| public byte[] | |
| public byte[] | |
| public ByteBuffer | getResourceBuffer(ImageLocation loc)
Returns the content of jimage location in a newly allocated byte buffer. |
| pack-priv ResourceEntries | |
| public InputStream | |
| public String | |
| public ImageStringsReader | |
| private IntBuffer | |
| private static boolean | |
| public int | |
| public static BasicImageReader | |
| private ByteBuffer | |
| private ImageHeader | |
| private static ByteBuffer | |
| public boolean |
| byteOrder | back to summary |
|---|---|
| private final ByteOrder byteOrder | |
| channel | back to summary |
|---|---|
| private final FileChannel channel | |
| decompressor | back to summary |
|---|---|
| private final Decompressor decompressor | |
| header | back to summary |
|---|---|
| private final ImageHeader header | |
| imagePath | back to summary |
|---|---|
| private final Path imagePath | |
| indexSize | back to summary |
|---|---|
| private final long indexSize | |
| IS_64_BIT | back to summary |
|---|---|
| private static final boolean IS_64_BIT | |
| locations | back to summary |
|---|---|
| private final ByteBuffer locations | |
| MAP_ALL | back to summary |
|---|---|
| private static final boolean MAP_ALL | |
| memoryMap | back to summary |
|---|---|
| private final ByteBuffer memoryMap | |
| name | back to summary |
|---|---|
| private final String name | |
| offsets | back to summary |
|---|---|
| private final IntBuffer offsets | |
| redirect | back to summary |
|---|---|
| private final IntBuffer redirect | |
| strings | back to summary |
|---|---|
| private final ByteBuffer strings | |
| stringsReader | back to summary |
|---|---|
| private final ImageStringsReader stringsReader | |
| USE_JVM_MAP | back to summary |
|---|---|
| private static final boolean USE_JVM_MAP | |
| BasicImageReader | back to summary |
|---|---|
protected BasicImageReader(Path path, ByteOrder byteOrder) throws IOException
| |
| BasicImageReader | back to summary |
|---|---|
| protected BasicImageReader(Path imagePath) throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| findLocation | back to summary |
|---|---|
| public ImageLocation findLocation(String module, String name) | |
| findLocation | back to summary |
|---|---|
| public ImageLocation findLocation(String name) | |
| getAttributes | back to summary |
|---|---|
| public long[] getAttributes(int offset) | |
| getBufferBytes | back to summary |
|---|---|
| private byte[] getBufferBytes(ByteBuffer buffer) | |
| getByteOrder | back to summary |
|---|---|
| public ByteOrder getByteOrder() | |
| getEntryNames | back to summary |
|---|---|
| public String[] getEntryNames() | |
| getHeader | back to summary |
|---|---|
| public ImageHeader getHeader() | |
| getImagePath | back to summary |
|---|---|
| public Path getImagePath() | |
| getLocation | back to summary |
|---|---|
| pack-priv ImageLocation getLocation(int offset) | |
| getLocationIndex | back to summary |
|---|---|
| public int getLocationIndex(String name) | |
| getLocationIndex | back to summary |
|---|---|
| private int getLocationIndex(String module, String name) | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getResource | back to summary |
|---|---|
| public byte[] getResource(String name) | |
| getResource | back to summary |
|---|---|
| public byte[] getResource(ImageLocation loc) | |
| getResourceBuffer | back to summary |
|---|---|
| public ByteBuffer getResourceBuffer(ImageLocation loc) Returns the content of jimage location in a newly allocated byte buffer. | |
| getResourceEntries | back to summary |
|---|---|
| pack-priv 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. The returned | |
| getResourceStream | back to summary |
|---|---|
| public InputStream getResourceStream(ImageLocation loc) | |
| getString | back to summary |
|---|---|
| public String getString(int offset) | |
| getStrings | back to summary |
|---|---|
| public ImageStringsReader getStrings() | |
| intBuffer | back to summary |
|---|---|
| private IntBuffer intBuffer(ByteBuffer buffer, int offset, int size) | |
| isSystemProperty | back to summary |
|---|---|
private static boolean isSystemProperty(String key, String value, String def)
| |
| match | back to summary |
|---|---|
| public int match(int offset, String string, int stringOffset) | |
| open | back to summary |
|---|---|
| public static BasicImageReader open(Path imagePath) throws IOException | |
| readBuffer | back to summary |
|---|---|
| private ByteBuffer readBuffer(long offset, long size) | |
| readHeader | back to summary |
|---|---|
| private ImageHeader readHeader(IntBuffer buffer) throws IOException | |
| slice | back to summary |
|---|---|
| private static ByteBuffer slice(ByteBuffer buffer, int position, int capacity) | |
| verifyLocation | back to summary |
|---|---|
| public boolean verifyLocation(String module, String name) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Deprecated
| |
| ImageVersionMismatchException | back to summary |
|---|---|
| pack-priv ImageVersionMismatchException(String name, int majorVersion, int minorVersion) | |