程序包 org.glavo.jimage

类 ImageStringsReader

java.lang.Object
org.glavo.jimage.ImageStringsReader
所有已实现的接口:
ImageStrings

public class ImageStringsReader extends Object implements ImageStrings
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.
  • 字段详细资料

    • HASH_MULTIPLIER

      public static final int HASH_MULTIPLIER
      另请参阅:
    • POSITIVE_MASK

      public static final int POSITIVE_MASK
      另请参阅:
  • 方法详细资料

    • get

      public String get(int offset)
      指定者:
      get 在接口中 ImageStrings
    • match

      public int match(int offset, String string, int stringOffset)
      从接口复制的说明: ImageStrings
      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.
      指定者:
      match 在接口中 ImageStrings
    • add

      public int add(String string)
      指定者:
      add 在接口中 ImageStrings
    • hashCode

      public static int hashCode(String s)
    • hashCode

      public static int hashCode(String s, int seed)
    • hashCode

      public static int hashCode(String module, String name)
    • hashCode

      public static int hashCode(String module, String name, int seed)
    • unmaskedHashCode

      public static int unmaskedHashCode(String s, int seed)
    • stringFromMUTF8

      public static String stringFromMUTF8(byte[] bytes, int offset, int count)
    • stringFromMUTF8

      public static String stringFromMUTF8(byte[] bytes)
    • stringFromByteBuffer

      public static String stringFromByteBuffer(ByteBuffer buffer)
    • mutf8FromString

      public static byte[] mutf8FromString(String string)