java.lang.Object
org.glavo.jimage.decompressor.StringSharingDecompressor
- 所有已实现的接口:
ResourceDecompressor
A Decompressor that reconstructs the constant pool of classes.
- 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.
-
嵌套类概要
从接口继承的嵌套类/接口 org.glavo.jimage.decompressor.ResourceDecompressor
ResourceDecompressor.StringsProvider -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明byte[]decompress(ResourceDecompressor.StringsProvider reader, byte[] content, int offset, long originalSize) Decompress a resource.static byte[]getEncoded(String pre) getName()Decompressor unique name.static int[]getSizes()static byte[]normalize(ResourceDecompressor.StringsProvider provider, byte[] transformed, int offset)
-
字段详细资料
-
构造器详细资料
-
StringSharingDecompressor
-
-
方法详细资料
-
getSizes
public static int[] getSizes() -
normalize
public static byte[] normalize(ResourceDecompressor.StringsProvider provider, byte[] transformed, int offset) throws IOException - 抛出:
IOException
-
getEncoded
- 抛出:
IOException
-
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
-