クラス ConsoleInputReader

java.lang.ObjectSE
org.springframework.shell.core.ConsoleInputReader
実装されているすべてのインターフェース:
InputReader

public class ConsoleInputReader extends ObjectSE implements InputReader
システムコンソールからの入力を読み取る InputReader の実装。
導入:
4.0.0
作成者:
Mahmoud Ben Hassine
  • コンストラクターの詳細

    • ConsoleInputReader

      public ConsoleInputReader(ConsoleSE console)
      新しい ConsoleInputReader インスタンスを作成します。
      パラメーター:
      console - システムコンソール
  • メソッドの詳細

    • readInput

      public StringSE readInput()
      インターフェースからコピーされた説明: InputReader
      ユーザーからの入力行を読み取ります。
      次で指定:
      インターフェース InputReaderreadInput 
      戻り値:
      the input line
    • readInput

      public StringSE readInput(StringSE prompt)
      インターフェースからコピーされた説明: InputReader
      プロンプトを使用してユーザーからの入力行を読み取ります。
      次で指定:
      インターフェース InputReaderreadInput 
      パラメーター:
      prompt - the prompt to display to the user
      戻り値:
      the input line
    • readPassword

      public char[] readPassword()
      インターフェースからコピーされた説明: InputReader
      ユーザーからパスワードを読み取ります。
      次で指定:
      インターフェース InputReaderreadPassword 
      戻り値:
      the password as a character array
    • readPassword

      public char[] readPassword(StringSE prompt)
      インターフェースからコピーされた説明: InputReader
      Read a password from the user with a prompt.
      次で指定:
      インターフェース InputReaderreadPassword 
      パラメーター:
      prompt - the prompt to display to the user
      戻り値:
      the password as a character array