Interface PromptProvider

    • Method Detail

      • getPromptWriter

        java.io.PrintWriter getPromptWriter()
        Gets the writer to which prompts should be written
        Returns:
        Prompt writer
      • readLine

        java.lang.String readLine()
        Reads a line from the prompts source
        Returns:
        Line (or null if unable to read a line)
      • readKey

        int readKey()
        Reads a single key from the prompts source
        Returns:
        Key code (or -1 if unable to read a key)
      • readSecureLine

        char[] readSecureLine()
        Reads a line from the prompts source in a secure manner
        Returns:
        Line (or null if unable to read a line)
      • supportsSecureReads

        boolean supportsSecureReads()
        Whether the provider supports secured reads
        Returns:
        True if supported, false otherwise