Top Description Methods
jdk.internal.org.jline.reader

public Interface MaskingCallback

Known Direct Implementers
jdk.internal.org.jline.reader.impl.SimpleMaskingCallback

Callback used to mask parts of the line

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the modified line to display
display
(String
the current line being edited
line
)

Transforms the line before it is displayed so that some parts can be hidden.

public String

Returns:

the modified line
history
(String
the line to be added to history
line
)

Transforms the line before storing in the history.

Method Detail

displayback to summary
public String display(String line)

Transforms the line before it is displayed so that some parts can be hidden.

Parameters
line:String

the current line being edited

Returns:String

the modified line to display

historyback to summary
public String history(String line)

Transforms the line before storing in the history. If the return value is empty or null, it will not be saved in the history.

Parameters
line:String

the line to be added to history

Returns:String

the modified line