接口 ResourceDecompressor

所有已知实现类:
StringSharingDecompressor

public interface ResourceDecompressor
JLink Image Decompressor.
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.
  • 方法详细资料

    • getName

      String getName()
      Decompressor unique name.
      返回:
      The decompressor name.
    • decompress

      byte[] decompress(ResourceDecompressor.StringsProvider strings, byte[] content, int offset, long originalSize) throws Exception
      Decompress a resource.
      参数:
      strings - The String provider
      content - The resource content
      offset - Resource content offset
      originalSize - Uncompressed size
      返回:
      Uncompressed resource
      抛出:
      Exception