APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.jimage.decompressor

public final Class ResourceDecompressorRepository

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.HashMap, .Map

JLink Decompressors. All decompressors must be registered in the static initializer of this class.

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 static final Map<String, ResourceDecompressorFactory>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ResourceDecompressor

Returns:

A decompressor or null if not found
newResourceDecompressor
(String
The plugin name to build.
name
)

Build a new decompressor for the passed name.

private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

factoriesback to summary
private static final Map<String, ResourceDecompressorFactory> factories

Constructor Detail

ResourceDecompressorRepositoryback to summary
private ResourceDecompressorRepository()

Method Detail

newResourceDecompressorback to summary
public static ResourceDecompressor newResourceDecompressor(String name) throws IOException

Build a new decompressor for the passed name.

Parameters
name:String

The plugin name to build.

Returns:ResourceDecompressor

A decompressor or null if not found

registerReaderProviderback to summary
private static void registerReaderProvider(ResourceDecompressorFactory factory)