- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.data.jimage.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.
-
-
字段概要
字段 修饰符和类型 字段 说明 static intMAGIC
-
构造器概要
构造器 构造器 说明 CompressedResourceHeader(long compressedSize, long uncompressedSize, int decompressorNameOffset, int contentOffset, boolean isTerminal)
-
方法概要
修饰符和类型 方法 说明 byte[]getBytes(ByteOrder order)intgetContentOffset()intgetDecompressorNameOffset()longgetResourceSize()static intgetSize()StringgetStoredContent(ResourceDecompressor.StringsProvider provider)longgetUncompressedSize()booleanisTerminal()static CompressedResourceHeaderreadFromResource(ByteOrder order, byte[] resource)
-
-
-
字段详细资料
-
MAGIC
public static final int MAGIC
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
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)
-
-