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.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final long | |
| private static final int | |
| private final int | |
| private static final int | |
| private final boolean | |
| public static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | CompressedResourceHeader(long compressedSize, long uncompressedSize, int decompressorNameOffset, boolean isTerminal)
|
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public int | |
| public long | |
| public static int | |
| public long | |
| public boolean | |
| public static CompressedResourceHeader |
| COMPRESSED_OFFSET | back to summary |
|---|---|
| private static final int COMPRESSED_OFFSET | |
| compressedSize | back to summary |
|---|---|
| private final long compressedSize | |
| DECOMPRESSOR_NAME_OFFSET | back to summary |
|---|---|
| private static final int DECOMPRESSOR_NAME_OFFSET | |
| decompressorNameOffset | back to summary |
|---|---|
| private final int decompressorNameOffset | |
| IS_TERMINAL_OFFSET | back to summary |
|---|---|
| private static final int IS_TERMINAL_OFFSET | |
| isTerminal | back to summary |
|---|---|
| private final boolean isTerminal | |
| MAGIC | back to summary |
|---|---|
| public static final int MAGIC | |
| MAGIC_OFFSET | back to summary |
|---|---|
| private static final int MAGIC_OFFSET | |
| SIZE | back to summary |
|---|---|
| private static final int SIZE | |
| UNCOMPRESSED_OFFSET | back to summary |
|---|---|
| private static final int UNCOMPRESSED_OFFSET | |
| uncompressedSize | back to summary |
|---|---|
| private final long uncompressedSize | |
| CompressedResourceHeader | back to summary |
|---|---|
| public CompressedResourceHeader(long compressedSize, long uncompressedSize, int decompressorNameOffset, boolean isTerminal) | |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes(ByteOrder order) | |
| getDecompressorNameOffset | back to summary |
|---|---|
| public int getDecompressorNameOffset() | |
| getResourceSize | back to summary |
|---|---|
| public long getResourceSize() | |
| getSize | back to summary |
|---|---|
| public static int getSize() | |
| getUncompressedSize | back to summary |
|---|---|
| public long getUncompressedSize() | |
| isTerminal | back to summary |
|---|---|
| public boolean isTerminal() | |
| readFromResource | back to summary |
|---|---|
| public static CompressedResourceHeader readFromResource(ByteOrder order, byte[] resource) | |