程序包 org.glavo.jimage

类 ImageHeader

java.lang.Object
org.glavo.jimage.ImageHeader

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

    • MAGIC

      public static final int MAGIC
      另请参阅:
    • MAJOR_VERSION

      public static final int MAJOR_VERSION
      另请参阅:
    • MINOR_VERSION

      public static final int MINOR_VERSION
      另请参阅:
  • 构造器详细资料

    • ImageHeader

      public ImageHeader(int resourceCount, int tableCount, int locationsSize, int stringsSize)
    • ImageHeader

      public ImageHeader(int magic, int majorVersion, int minorVersion, int flags, int resourceCount, int tableLength, int locationsSize, int stringsSize)
  • 方法详细资料

    • getHeaderSize

      public static int getHeaderSize()
    • writeTo

      public void writeTo(ImageStream stream)
    • writeTo

      public void writeTo(ByteBuffer buffer)
    • getMagic

      public int getMagic()
    • getMajorVersion

      public int getMajorVersion()
    • getMinorVersion

      public int getMinorVersion()
    • getFlags

      public int getFlags()
    • getResourceCount

      public int getResourceCount()
    • getTableLength

      public int getTableLength()
    • getRedirectSize

      public int getRedirectSize()
    • getOffsetsSize

      public int getOffsetsSize()
    • getLocationsSize

      public int getLocationsSize()
    • getStringsSize

      public int getStringsSize()
    • getIndexSize

      public int getIndexSize()