インターフェース InputReader

すべての既知の実装クラス:
ConsoleInputReaderJLineInputReader

public interface InputReader
ユーザーからの入力を読み取るためのインターフェース。
導入:
4.0.0
作成者:
Mahmoud Ben Hassine
  • 方法の概要

    修飾子と型
    メソッド
    説明
    default StringSE
    ユーザーからの入力行を読み取ります。
    default StringSE
    プロンプトを使用してユーザーからの入力行を読み取ります。
    default char[]
    ユーザーからパスワードを読み取ります。
    default char[]
    Read a password from the user with a prompt.
  • メソッドの詳細

    • readInput

      default StringSE readInput() throws ExceptionSE
      ユーザーからの入力行を読み取ります。
      戻り値:
      the input line
      例外:
      ExceptionSE - if an error occurs while reading input
    • readInput

      default StringSE readInput(StringSE prompt) throws ExceptionSE
      プロンプトを使用してユーザーからの入力行を読み取ります。
      パラメーター:
      prompt - the prompt to display to the user
      戻り値:
      the input line
      例外:
      ExceptionSE - if an error occurs while reading input
    • readPassword

      default char[] readPassword() throws ExceptionSE
      ユーザーからパスワードを読み取ります。
      戻り値:
      the password as a character array
      例外:
      ExceptionSE - if an error occurs while reading the password
    • readPassword

      default char[] readPassword(StringSE prompt) throws ExceptionSE
      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