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 |
|---|---|
| public static final int | |
| public static final int | |
| private final BasicImageReader |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| private static void | |
| private static int | charsFromByteBufferLength(ByteBuffer buffer, int offset)
Calculates the number of characters in the String present at the specified offset. |
| pack-priv static void | |
| pack-priv static int | |
| public String | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public int | match(int offset, String string, int stringOffset)
Overrides default jdk. If there's a string at |
| pack-priv static void | |
| public static byte[] | |
| pack-priv static int | |
| public static String | |
| pack-priv static String | |
| pack-priv static int | |
| public static String | |
| public static String | |
| public static int |
| HASH_MULTIPLIER | back to summary |
|---|---|
| public static final int HASH_MULTIPLIER | |
| POSITIVE_MASK | back to summary |
|---|---|
| public static final int POSITIVE_MASK | |
| reader | back to summary |
|---|---|
| private final BasicImageReader reader | |
| ImageStringsReader | back to summary |
|---|---|
| pack-priv ImageStringsReader(BasicImageReader reader) | |
| add | back to summary |
|---|---|
| public int add(final String string) Implements jdk.
| |
| charsFromByteBuffer | back to summary |
|---|---|
| private static void charsFromByteBuffer(char[] chars, ByteBuffer buffer, int offset) | |
| charsFromByteBufferLength | back to summary |
|---|---|
| private static int charsFromByteBufferLength(ByteBuffer buffer, int offset) Calculates the number of characters in the String present at the specified offset. As an optimization, the length returned will be positive if the characters are all ASCII, and negative otherwise. | |
| charsFromMUTF8 | back to summary |
|---|---|
| pack-priv static void charsFromMUTF8(char[] chars, byte[] bytes, int offset, int count) throws UTFDataFormatException | |
| charsFromMUTF8Length | back to summary |
|---|---|
| pack-priv static int charsFromMUTF8Length(byte[] bytes, int offset, int count) | |
| get | back to summary |
|---|---|
| public String get(int offset) Implements jdk.
| |
| hashCode | back to summary |
|---|---|
| public static int hashCode(String s) | |
| hashCode | back to summary |
|---|---|
| public static int hashCode(String s, int seed) | |
| hashCode | back to summary |
|---|---|
| public static int hashCode(String module, String name) | |
| hashCode | back to summary |
|---|---|
| public static int hashCode(String module, String name, int seed) | |
| match | back to summary |
|---|---|
| public int match(int offset, String string, int stringOffset) Overrides default jdk. Doc from jdk. If there's a string at
| |
| mutf8FromString | back to summary |
|---|---|
| pack-priv static void mutf8FromString(byte[] bytes, int offset, String s) | |
| mutf8FromString | back to summary |
|---|---|
| public static byte[] mutf8FromString(String string) | |
| mutf8FromStringLength | back to summary |
|---|---|
| pack-priv static int mutf8FromStringLength(String s) | |
| stringFromByteBuffer | back to summary |
|---|---|
| public static String stringFromByteBuffer(ByteBuffer buffer) | |
| stringFromByteBuffer | back to summary |
|---|---|
| pack-priv static String stringFromByteBuffer(ByteBuffer buffer, int offset) | |
| stringFromByteBufferMatches | back to summary |
|---|---|
| pack-priv static int stringFromByteBufferMatches(ByteBuffer buffer, int offset, String string, int stringOffset) | |
| stringFromMUTF8 | back to summary |
|---|---|
| public static String stringFromMUTF8(byte[] bytes, int offset, int count) | |
| stringFromMUTF8 | back to summary |
|---|---|
| public static String stringFromMUTF8(byte[] bytes) | |
| unmaskedHashCode | back to summary |
|---|---|
| public static int unmaskedHashCode(String s, int seed) | |