APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.tools.jlink.internal

pack-priv final Class ArchiveEntryResourcePoolEntry

extends AbstractResourcePoolEntry
Class Inheritance
Imports
java.io.IOException, .InputStream, .UncheckedIOException, java.util.Objects, jdk.tools.jlink.plugin.ResourcePoolEntry

A ResourcePoolEntry backed by a given Archive Entry.

Field Summary

Modifier and TypeField and Description
private final Archive.Entry

Constructor Summary

AccessConstructor and Description
pack-priv
ArchiveEntryResourcePoolEntry(String
The module name.
module
,
String
The data path identifier.
path
,
Archive.Entry
The archive Entry.
entry
)

Create a new ArchiveResourcePoolEntry.

Method Summary

Modifier and TypeMethod and Description
public InputStream
content()

Implements jdk.tools.jlink.plugin.ResourcePoolEntry.content.

The ResourcePoolEntry content as an InputStream.

public long
contentLength()

Implements jdk.tools.jlink.plugin.ResourcePoolEntry.contentLength.

The ResourcePoolEntry content length.

private static ResourcePoolEntry.Type
Inherited from jdk.tools.jlink.internal.AbstractResourcePoolEntry:
equalshashCodemoduleNamepathtoStringtype

Field Detail

entryback to summary
private final Archive.Entry entry

Constructor Detail

ArchiveEntryResourcePoolEntryback to summary
pack-priv ArchiveEntryResourcePoolEntry(String module, String path, Archive.Entry entry)

Create a new ArchiveResourcePoolEntry.

Parameters
module:String

The module name.

path:String

The data path identifier.

entry:Archive.Entry

The archive Entry.

Method Detail

contentback to summary
public InputStream content()

Implements jdk.tools.jlink.plugin.ResourcePoolEntry.content.

Doc from jdk.tools.jlink.plugin.ResourcePoolEntry.content.

The ResourcePoolEntry content as an InputStream.

Annotations
@Override
contentLengthback to summary
public long contentLength()

Implements jdk.tools.jlink.plugin.ResourcePoolEntry.contentLength.

Doc from jdk.tools.jlink.plugin.ResourcePoolEntry.contentLength.

The ResourcePoolEntry content length.

Annotations
@Override
getImageFileTypeback to summary
private static ResourcePoolEntry.Type getImageFileType(Archive.Entry entry)