インターフェース InputReader
- すべての既知の実装クラス:
ConsoleInputReader,JLineInputReader
public interface InputReader
ユーザーからの入力を読み取るためのインターフェース。
- 導入:
- 4.0.0
- 作成者:
- Mahmoud Ben Hassine
方法の概要
修飾子と型メソッド説明default StringSEユーザーからの入力行を読み取ります。default StringSEプロンプトを使用してユーザーからの入力行を読み取ります。default char[]ユーザーからパスワードを読み取ります。default char[]readPassword(StringSE prompt) Read a password from the user with a prompt.
メソッドの詳細
readInput
ユーザーからの入力行を読み取ります。- 戻り値:
- the input line
- 例外:
ExceptionSE- if an error occurs while reading input
readInput
プロンプトを使用してユーザーからの入力行を読み取ります。- パラメーター:
prompt- the prompt to display to the user- 戻り値:
- the input line
- 例外:
ExceptionSE- if an error occurs while reading input
readPassword
ユーザーからパスワードを読み取ります。- 戻り値:
- the password as a character array
- 例外:
ExceptionSE- if an error occurs while reading the password
readPassword
Read a password from the user with a prompt.- パラメーター:
prompt- the prompt to display to the user- 戻り値:
- the password as a character array
- 例外:
ExceptionSE- if an error occurs while reading the password