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

public Class SymLinkResourcePoolEntry

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

A symbolic link ResourcePoolEntry. It will be created in the image as a symbolic link to the target when the target platform supports symbolic links; otherwise, it will create a file containing the path to the target file.

Field Summary

Modifier and TypeField and Description
private final ResourcePoolEntry

Constructor Summary

AccessConstructor and Description
public
SymLinkResourcePoolEntry(String
The module name.
module
,
String
The path for the resource content.
path
,
ResourcePoolEntry.Type
The data type.
type
,
ResourcePoolEntry
Target entry in the image
target
)

Create a new SymLinkResourcePoolEntry.

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.

public ResourcePoolEntry
linkedTarget()

Overrides default jdk.tools.jlink.plugin.ResourcePoolEntry.linkedTarget.

Returns a target linked with this entry.

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

Field Detail

targetback to summary
private final ResourcePoolEntry target

Constructor Detail

SymLinkResourcePoolEntryback to summary
public SymLinkResourcePoolEntry(String module, String path, ResourcePoolEntry.Type type, ResourcePoolEntry target)

Create a new SymLinkResourcePoolEntry.

Parameters
module:String

The module name.

path:String

The path for the resource content.

type:ResourcePoolEntry.Type

The data type.

target:ResourcePoolEntry

Target entry in the image

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
linkedTargetback to summary
public ResourcePoolEntry linkedTarget()

Overrides default jdk.tools.jlink.plugin.ResourcePoolEntry.linkedTarget.

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

Returns a target linked with this entry.

Annotations
@Override