public final class SimpleMaskingCallback extends Object implements MaskingCallback
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.| Constructor and Description |
|---|
SimpleMaskingCallback(Character mask) |
| Modifier and Type | Method and Description |
|---|---|
String |
display(String line)
Transforms the line before it is displayed so that
some parts can be hidden.
|
String |
history(String line)
Transforms the line before storing in the history.
|
public SimpleMaskingCallback(Character mask)
public String display(String line)
MaskingCallbackdisplay in interface MaskingCallbackpublic String history(String line)
MaskingCallbackhistory in interface MaskingCallbackCopyright © 2020. All rights reserved.