类 CompressIndexes

java.lang.Object
org.glavo.jimage.decompressor.CompressIndexes

public class CompressIndexes extends Object
Index compressor. Use the minimal amount of bytes required to store an integer.
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.
  • 构造器详细资料

    • CompressIndexes

      public CompressIndexes()
  • 方法详细资料

    • decompressFlow

      public static List<Integer> decompressFlow(byte[] values)
    • readInt

      public static int readInt(DataInputStream cr) throws IOException
      抛出:
      IOException
    • decompress

      public static int decompress(byte[] value, int offset)
    • compress

      public static byte[] compress(int value)