- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.data.jimage.StringSharingDecompressor
-
- 所有已实现的接口:
ResourceDecompressor
public class StringSharingDecompressor extends Object implements ResourceDecompressor
A Decompressor that reconstructs the constant pool of classes.
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 cn.mcres.karlatemp.mxlib.data.jimage.ResourceDecompressor
ResourceDecompressor.StringsProvider
-
-
字段概要
字段 修饰符和类型 字段 说明 static intEXTERNALIZED_STRINGstatic intEXTERNALIZED_STRING_DESCRIPTOR
-
构造器概要
构造器 构造器 说明 StringSharingDecompressor(Properties properties)
-
方法概要
修饰符和类型 方法 说明 byte[]decompress(ResourceDecompressor.StringsProvider reader, byte[] content, int offset, long originalSize)Decompress a resource.static byte[]getEncoded(String pre)StringgetName()Decompressor unique name.static int[]getSizes()static byte[]normalize(ResourceDecompressor.StringsProvider provider, byte[] transformed, int offset)
-
-
-
构造器详细资料
-
StringSharingDecompressor
public StringSharingDecompressor(Properties properties)
-
-
方法详细资料
-
getSizes
public static int[] getSizes()
-
normalize
public static byte[] normalize(ResourceDecompressor.StringsProvider provider, byte[] transformed, int offset) throws IOException
- 抛出:
IOException
-
getEncoded
public static byte[] getEncoded(String pre) throws IOException
- 抛出:
IOException
-
getName
public String getName()
从接口复制的说明:ResourceDecompressorDecompressor unique name.- 指定者:
getName在接口中ResourceDecompressor- 返回:
- The decompressor name.
-
decompress
public byte[] decompress(ResourceDecompressor.StringsProvider reader, byte[] content, int offset, long originalSize) throws Exception
从接口复制的说明:ResourceDecompressorDecompress a resource.- 指定者:
decompress在接口中ResourceDecompressor- 参数:
reader- The String providercontent- The resource contentoffset- Resource content offsetoriginalSize- Uncompressed size- 返回:
- Uncompressed resource
- 抛出:
Exception
-
-