MaskingCallback
that will replace all the characters in the line with the given mask.
If the given mask is equal to LineReaderImpl#NULL_MASK
then the line will be replaced with an empty String.
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public String | display(String
the current line being edited line)Implements jdk. Transforms the line before it is displayed so that some parts can be hidden. |
public String | history(String
the line to be added to history line)Implements jdk. Transforms the line before storing in the history. |
mask | back to summary |
---|---|
private final Character mask |
SimpleMaskingCallback | back to summary |
---|---|
public SimpleMaskingCallback(Character mask) |
display | back to summary |
---|---|
public String display(String line) Implements jdk. Doc from jdk. Transforms the line before it is displayed so that some parts can be hidden. |
history | back to summary |
---|---|
public String history(String line) Implements jdk. Doc from jdk. Transforms the line before storing in the history. If the return value is empty or null, it will not be saved in the history. |