APIdia Launch Partner
Top Description Methods
jdk.tools.jlink.builder

public Interface ImageBuilder

Known Direct Implementers
jdk.tools.jlink.builder.DefaultImageBuilder
Imports
java.io.DataOutputStream, java.util.Properties, jdk.tools.jlink.internal.ExecutableImage, .Platform, jdk.tools.jlink.plugin.PluginException, .ResourcePool

Implement this interface to develop your own image layout. First the jimage is written onto the output stream returned by getOutputStream then storeFiles is called.

Method Summary

Modifier and TypeMethod and Description
public ExecutableImage

Returns:

The executable image.
getExecutableImage
()

Gets the executable image that is generated.

public DataOutputStream

Returns:

The output stream
getJImageOutputStream
()

The OutputStream to store the jimage file.

public default Platform

Returns:

Platform object representing the platform of the image
getTargetPlatform
()

Gets the platform of the image.

public default void
storeFiles(ResourcePool
Pool of module content.
content
,
Properties
the release properties
release
)

Store the external files.

public default void
storeFiles(ResourcePool
Pool of module content.
content
)

Store the external files.

Method Detail

getExecutableImageback to summary
public ExecutableImage getExecutableImage()

Gets the executable image that is generated.

Returns:ExecutableImage

The executable image.

getJImageOutputStreamback to summary
public DataOutputStream getJImageOutputStream()

The OutputStream to store the jimage file.

Returns:DataOutputStream

The output stream

getTargetPlatformback to summary
public default Platform getTargetPlatform()

Gets the platform of the image.

Returns:Platform

Platform object representing the platform of the image

Exceptions
UnsupportedOperationException:
if this method is not implemented by the ImageBuilder
storeFilesback to summary
public default void storeFiles(ResourcePool content, Properties release)

Store the external files.

Parameters
content:ResourcePool

Pool of module content.

release:Properties

the release properties

storeFilesback to summary
public default void storeFiles(ResourcePool content)

Store the external files.

Parameters
content:ResourcePool

Pool of module content.