Top Description Fields Constructors Methods
jdk.tools.jlink.internal.plugins

public final Class DefaultCompressPlugin

extends AbstractPlugin
implements ResourcePrevisitor
Class Inheritance
All Implemented Interfaces
jdk.tools.jlink.internal.ResourcePrevisitor
Imports
java.util.Map, java.util.function.Function, jdk.tools.jlink.internal.ResourcePoolManager.ResourcePoolImpl, .ImagePluginStack, .ResourcePoolManager, .ResourcePrevisitor, .StringTable, jdk.tools.jlink.plugin.ResourcePool, .ResourcePoolBuilder

ZIP and String Sharing compression plugin

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
public static final String
public static final String
private StringSharingPlugin
private ZipPlugin
Inherited from jdk.tools.jlink.internal.plugins.AbstractPlugin:
DESCRIPTIONUSAGE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
configure(Map<String, String>
The plugin configuration.
config
)

Overrides default jdk.tools.jlink.plugin.Plugin.configure.

Configure the plugin based on the passed configuration.

public Plugin.Category
getType()

Overrides default jdk.tools.jlink.plugin.Plugin.getType.

The type of this plugin.

public boolean
hasArguments()

Overrides default jdk.tools.jlink.plugin.Plugin.hasArguments.

Has this plugin require one or more arguments?

public void
previsit(ResourcePool
Read only resources.
resources
,
StringTable
StringTable instance. Add string to the StringTable to track string usage.
strings
)

Implements jdk.tools.jlink.internal.ResourcePrevisitor.previsit.

Previsit the collection of resources.

public ResourcePool
transform(ResourcePool
Read only content.
in
,
ResourcePoolBuilder
The pool to fill with content. This pool must contain the result of the visit.
out
)

Implements jdk.tools.jlink.plugin.Plugin.transform.

Visit the content of the modules that are composing the image.

Inherited from jdk.tools.jlink.internal.plugins.AbstractPlugin:
getArgumentsDescriptiongetDescriptiongetMessagegetNamegetUsagenewClassReadernewClassReader

Field Detail

FILTERback to summary
public static final String FILTER
LEVEL_0back to summary
public static final String LEVEL_0
LEVEL_1back to summary
public static final String LEVEL_1
LEVEL_2back to summary
public static final String LEVEL_2
ssback to summary
private StringSharingPlugin ss
zipback to summary
private ZipPlugin zip

Constructor Detail

DefaultCompressPluginback to summary
public DefaultCompressPlugin()

Method Detail

configureback to summary
public void configure(Map<String, String> config)

Overrides default jdk.tools.jlink.plugin.Plugin.configure.

Doc from jdk.tools.jlink.plugin.Plugin.configure.

Configure the plugin based on the passed configuration. This method is called prior to invoke the plugin.

Parameters
config:Map<String, String>

The plugin configuration.

Annotations
@Override
getTypeback to summary
public Plugin.Category getType()

Overrides default jdk.tools.jlink.plugin.Plugin.getType.

Doc from jdk.tools.jlink.plugin.Plugin.getType.

The type of this plugin.

Returns:Plugin.Category

The type of this plugin

Annotations
@Override
hasArgumentsback to summary
public boolean hasArguments()

Overrides default jdk.tools.jlink.plugin.Plugin.hasArguments.

Doc from jdk.tools.jlink.plugin.Plugin.hasArguments.

Has this plugin require one or more arguments? A plugin can have one or more optional arguments.
A plugin option with a single argument is specified as follows:

     --plugin-option=arg_value
 
If there are more than arguments, command line option looks like:
     --plugin-option=arg_value:arg2=value2:arg3=value3...
Returns:boolean

true if arguments are needed.

Annotations
@Override
previsitback to summary
public void previsit(ResourcePool resources, StringTable strings)

Implements jdk.tools.jlink.internal.ResourcePrevisitor.previsit.

Doc from jdk.tools.jlink.internal.ResourcePrevisitor.previsit.

Previsit the collection of resources.

Parameters
resources:ResourcePool

Read only resources.

strings:StringTable

StringTable instance. Add string to the StringTable to track string usage.

Annotations
@Override
transformback to summary
public ResourcePool transform(ResourcePool in, ResourcePoolBuilder out)

Implements jdk.tools.jlink.plugin.Plugin.transform.

Doc from jdk.tools.jlink.plugin.Plugin.transform.

Visit the content of the modules that are composing the image.

Parameters
in:ResourcePool

Read only content.

out:ResourcePoolBuilder

The pool to fill with content. This pool must contain the result of the visit.

Annotations
@Override