java.lang.Object
org.glavo.jimage.decompressor.CompressedResourceHeader
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(long compressedSize, long uncompressedSize, int decompressorNameOffset, int contentOffset, boolean isTerminal) -
方法概要
修饰符和类型方法说明byte[]intintlongstatic intgetSize()longbooleanstatic CompressedResourceHeaderreadFromResource(ByteOrder order, byte[] resource)
-
字段详细资料
-
MAGIC
public static final int MAGIC- 另请参阅:
-
-
构造器详细资料
-
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
-
getUncompressedSize
public long getUncompressedSize() -
getResourceSize
public long getResourceSize() -
getBytes
-
getSize
public static int getSize() -
readFromResource
-