APIdia Launch Partner
Top Description Fields Methods
jdk.internal.io

public Interface JdkConsoleProvider

Imports
java.nio.charset.Charset

Service provider interface for JdkConsole implementations.

Field Summary

Modifier and TypeField and Description
public static final String
DEFAULT_PROVIDER_MODULE_NAME

The module name of the JdkConsole default provider.

Method Summary

Modifier and TypeMethod and Description
public JdkConsole

Returns:

the Console instance, or null if not available
console
(boolean
indicates if the jvm is attached to a terminal
isTTY
,
Charset
Standard input charset of the platform console
inCharset
,
Charset
Standard output charset of the platform console
outCharset
)

Returns the Console instance, or null if not available.

Field Detail

DEFAULT_PROVIDER_MODULE_NAMEback to summary
public static final String DEFAULT_PROVIDER_MODULE_NAME

The module name of the JdkConsole default provider.

Method Detail

consoleback to summary
public JdkConsole console(boolean isTTY, Charset inCharset, Charset outCharset)

Returns the Console instance, or null if not available.

Parameters
isTTY:boolean

indicates if the jvm is attached to a terminal

inCharset:Charset

Standard input charset of the platform console

outCharset:Charset

Standard output charset of the platform console

Returns:JdkConsole

the Console instance, or null if not available