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

public Class PathResourcePoolEntry

extends AbstractResourcePoolEntry
Class Inheritance
Imports
java.io.IOException, .InputStream, .UncheckedIOException, java.nio.file.Files, .Path, java.util.Objects

A ResourcePoolEntry backed by a given nio Path.

Field Summary

Modifier and TypeField and Description
private final Path

Constructor Summary

AccessConstructor and Description
public
PathResourcePoolEntry(String
The module name.
module
,
String
The path for the resource content.
path
,
ResourcePoolEntry.Type
The data type.
type
,
Path
The data file identifier.
file
)

Create a new PathResourcePoolEntry.

Method Summary

Modifier and TypeMethod and Description
public final InputStream
content()

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

The ResourcePoolEntry content as an InputStream.

public final long
contentLength()

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

The ResourcePoolEntry content length.

Inherited from jdk.tools.jlink.internal.AbstractResourcePoolEntry:
equalshashCodemoduleNamepathtoStringtype

Field Detail

fileback to summary
private final Path file

Constructor Detail

PathResourcePoolEntryback to summary
public PathResourcePoolEntry(String module, String path, ResourcePoolEntry.Type type, Path file)

Create a new PathResourcePoolEntry.

Parameters
module:String

The module name.

path:String

The path for the resource content.

type:ResourcePoolEntry.Type

The data type.

file:Path

The data file identifier.

Method Detail

contentback to summary
public final 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 final long contentLength()

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

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

The ResourcePoolEntry content length.

Annotations
@Override