Package org.jline.reader
Interface MaskingCallback
-
- All Known Implementing Classes:
SimpleMaskingCallback
public interface MaskingCallback
Callback used to mask parts of the line
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
display(java.lang.String line)
Transforms the line before it is displayed so that some parts can be hidden.java.lang.String
history(java.lang.String line)
Transforms the line before storing in the history.
-
-
-
Method Detail
-
display
java.lang.String display(java.lang.String line)
Transforms the line before it is displayed so that some parts can be hidden.- Parameters:
line
- the current line being edited- Returns:
- the modified line to display
-
history
java.lang.String history(java.lang.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
- the line to be added to history- Returns:
- the modified line
-
-