APIdia Launch Partner
Top Fields Methods
jdk.internal.jimage

public Interface ImageStrings

Known Direct Implementers
jdk.internal.jimage.ImageStringsReader

Implementation Note

This interface 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
public static final int
CLASS_STRING_OFFSET

Fixed offset for the string "class" in the strings table.

public static final int
EMPTY_STRING_OFFSET

Fixed offset for the empty string in the strings table.

public static final int
MODULES_STRING_OFFSET

Fixed offset for the string "modules" in the strings table.

public static final int
PACKAGES_STRING_OFFSET

Fixed offset for the string "packages" in the strings table.

Method Summary

Modifier and TypeMethod and Description
public int
add(final String string)

public String
get(int offset)

public default int
match(int offset, String string, int stringOffset)

If there's a string at offset matching in full a substring of string starting at stringOffset, return the length of that string.

Field Detail

CLASS_STRING_OFFSETback to summary
public static final int CLASS_STRING_OFFSET

Fixed offset for the string "class" in the strings table.

EMPTY_STRING_OFFSETback to summary
public static final int EMPTY_STRING_OFFSET

Fixed offset for the empty string in the strings table.

MODULES_STRING_OFFSETback to summary
public static final int MODULES_STRING_OFFSET

Fixed offset for the string "modules" in the strings table.

PACKAGES_STRING_OFFSETback to summary
public static final int PACKAGES_STRING_OFFSET

Fixed offset for the string "packages" in the strings table.

Method Detail

addback to summary
public int add(final String string)
getback to summary
public String get(int offset)
matchback to summary
public default int match(int offset, String string, int stringOffset)

If there's a string at offset matching in full a substring of string starting at stringOffset, return the length of that string. Otherwise returns -1. Optional operation.