APIdia Launch Partner
Top Inners Constructors Methods
jdk.tools.jlink.internal

public Class Main

extends Object
Class Inheritance
Imports
java.io.*, java.util.Optional, java.util.spi.ToolProvider

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Constructor Summary

AccessConstructor and Description
public
Main()

Method Summary

Modifier and TypeMethod and Description
public static void
main(String... args)

public static int

Returns:

an exit code. 0 means success, non-zero means an error occurred.
run
(PrintWriter
output stream
out
,
PrintWriter
error output stream
err
,
String...
command line arguments
args
)

Entry point that does not call System.exit.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Mainback to summary
public Main()

Method Detail

mainback to summary
public static void main(String... args) throws Exception
runback to summary
public static int run(PrintWriter out, PrintWriter err, String... args)

Entry point that does not call System.exit.

Parameters
out:PrintWriter

output stream

err:PrintWriter

error output stream

args:String[]

command line arguments

Returns:int

an exit code. 0 means success, non-zero means an error occurred.

jdk.tools.jlink.internal back to summary

public Class Main.JlinkToolProvider

extends Object
implements ToolProvider
Class Inheritance
All Implemented Interfaces
java.util.spi.ToolProvider

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Optional<String>
description()

Overrides default java.util.spi.ToolProvider.description.

Returns a short description of the tool, or an empty Optional if no description is available.

public String
name()

Implements java.util.spi.ToolProvider.name.

Returns the name of this tool provider.

public int
run(PrintWriter out, PrintWriter err, String... args)

Implements java.util.spi.ToolProvider.run.

Runs an instance of the tool, returning zero for a successful run.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JlinkToolProviderback to summary
public JlinkToolProvider()

Method Detail

descriptionback to summary
public Optional<String> description()

Overrides default java.util.spi.ToolProvider.description.

Doc from java.util.spi.ToolProvider.description.

Returns a short description of the tool, or an empty Optional if no description is available.

Annotations
@Override
nameback to summary
public String name()

Implements java.util.spi.ToolProvider.name.

Doc from java.util.spi.ToolProvider.name.

Returns the name of this tool provider.

Annotations
@Override
runback to summary
public int run(PrintWriter out, PrintWriter err, String... args)

Implements java.util.spi.ToolProvider.run.

Doc from java.util.spi.ToolProvider.run.

Runs an instance of the tool, returning zero for a successful run. Any non-zero return value indicates a tool-specific error during the execution. Two streams should be provided, for "expected" output, and for any error messages. If it is not necessary to distinguish the output, the same stream may be used for both.

Annotations
@Override