Top Description Fields Constructors Methods
jdk.internal.jimage.decompressor

public final Class Decompressor

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteOrder, java.util.HashMap, .Map, .Objects, jdk.internal.jimage.decompressor.ResourceDecompressor.StringsProvider

Entry point to decompress resources.

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.

Field Summary

Modifier and TypeField and Description
private final Map<Integer, ResourceDecompressor>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

A fully uncompressed resource.
decompressResource
(ByteOrder
Byte order.
order
,
ResourceDecompressor.StringsProvider
Strings provider
provider
,
byte[]
The resource content to uncompress.
content
)

Decompress a resource.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pluginsCacheback to summary
private final Map<Integer, ResourceDecompressor> pluginsCache

Constructor Detail

Decompressorback to summary
public Decompressor()

Method Detail

decompressResourceback to summary
public byte[] decompressResource(ByteOrder order, ResourceDecompressor.StringsProvider provider, byte[] content) throws IOException

Decompress a resource.

Parameters
order:ByteOrder

Byte order.

provider:ResourceDecompressor.StringsProvider

Strings provider

content:byte[]

The resource content to uncompress.

Returns:byte[]

A fully uncompressed resource.