Package org.jline.reader

JLine 3 Reader Package - Core components for building interactive command-line interfaces.

This package provides the fundamental interfaces and classes for creating interactive command-line applications with features such as:

  • Line editing with customizable key bindings
  • Command history navigation
  • Tab completion with pluggable completion strategies
  • Customizable syntax highlighting
  • Password masking
  • Custom prompt rendering
  • Command parsing and tokenization

The main entry point is the LineReader interface, which can be instantiated using the LineReaderBuilder. The LineReader provides methods to read input from the user with various customization options.

Key components in this package include:

  • LineReader - The main interface for reading lines from the console
  • LineReaderBuilder - Builder for creating LineReader instances
  • Parser - Interface for parsing command lines into tokens
  • Completer - Interface for providing tab-completion candidates
  • Highlighter - Interface for syntax highlighting
  • History - Interface for command history management
Since:
3.0