インターフェース InputProvider

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

public interface InputProvider
インタラクティブまたはバッチによるユーザー入力の「行」を提供できるコンポーネントによって実装されます。
作成者:
Eric Bottard, Piotr Olaszewski, Mahmoud Ben Hassine
  • 方法の概要

    修飾子と型
    メソッド
    説明
    @Nullable StringSE
    コマンドを呼び出すためにユーザーが入力したテキストを返します。
  • 方法の詳細

    • readInput

      @Nullable StringSE readInput() throws ExceptionSE
      コマンドを呼び出すためにユーザーが入力したテキストを返します。
      戻り値:
      ユーザー入力行、または入力の終わりに達した場合は null
      例外:
      ExceptionSE - エラー時