Class JLineInputReader

java.lang.Object
org.springframework.shell.jline.JLineInputReader
All Implemented Interfaces:
org.springframework.shell.core.InputReader

public class JLineInputReader extends Object implements org.springframework.shell.core.InputReader
Implementation of InputReader that reads input using JLine's LineReader.
Since:
4.0.0
Author:
Mahmoud Ben Hassine
  • Constructor Details

    • JLineInputReader

      public JLineInputReader(org.jline.reader.LineReader lineReader)
      Create a new JLineInputReader instance.
      Parameters:
      lineReader - the JLine line reader
  • Method Details

    • readInput

      public String readInput()
      Specified by:
      readInput in interface org.springframework.shell.core.InputReader
    • readInput

      public String readInput(String prompt)
      Specified by:
      readInput in interface org.springframework.shell.core.InputReader
    • readPassword

      public char[] readPassword()
      Specified by:
      readPassword in interface org.springframework.shell.core.InputReader
    • readPassword

      public char[] readPassword(String prompt)
      Specified by:
      readPassword in interface org.springframework.shell.core.InputReader