类 CompressedResourceHeader

java.lang.Object
org.glavo.jimage.decompressor.CompressedResourceHeader

public final class CompressedResourceHeader extends Object
A resource header for compressed resource. This class is handled internally, you don't have to add header to the resource, headers are added automatically for compressed resources.
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.
  • 字段详细资料

  • 构造器详细资料

    • CompressedResourceHeader

      public CompressedResourceHeader(long compressedSize, long uncompressedSize, int decompressorNameOffset, int contentOffset, boolean isTerminal)
  • 方法详细资料

    • isTerminal

      public boolean isTerminal()
    • getDecompressorNameOffset

      public int getDecompressorNameOffset()
    • getContentOffset

      public int getContentOffset()
    • getStoredContent

      public String getStoredContent(ResourceDecompressor.StringsProvider provider)
    • getUncompressedSize

      public long getUncompressedSize()
    • getResourceSize

      public long getResourceSize()
    • getBytes

      public byte[] getBytes(ByteOrder order)
    • getSize

      public static int getSize()
    • readFromResource

      public static CompressedResourceHeader readFromResource(ByteOrder order, byte[] resource)