APIdia Launch Partner
Top Description Inners Methods
jdk.internal.jimage.decompressor

public Interface ResourceDecompressor

Known Direct Implementers
jdk.internal.jimage.decompressor.StringSharingDecompressor, jdk.internal.jimage.decompressor.ZipDecompressor

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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

Uncompressed resource
decompress
(ResourceDecompressor.StringsProvider
The String provider
strings
,
byte[]
The resource content
content
,
int
Resource content offset
offset
,
long
Uncompressed size
originalSize
)

Decompress a resource.

public String

Returns:

The decompressor name.
getName
()

Decompressor unique name.

Method Detail

decompressback to summary
public byte[] decompress(ResourceDecompressor.StringsProvider strings, byte[] content, int offset, long originalSize) throws Exception

Decompress a resource.

Parameters
strings:ResourceDecompressor.StringsProvider

The String provider

content:byte[]

The resource content

offset:int

Resource content offset

originalSize:long

Uncompressed size

Returns:byte[]

Uncompressed resource

getNameback to summary
public String getName()

Decompressor unique name.

Returns:String

The decompressor name.

jdk.internal.jimage.decompressor back to summary

public Interface ResourceDecompressor.StringsProvider


Method Summary

Modifier and TypeMethod and Description
public String
getString(int offset)

Method Detail

getStringback to summary
public String getString(int offset)