Class NonBlocking


  • public class NonBlocking
    extends java.lang.Object
    Factory class for creating non-blocking I/O components.

    The NonBlocking class provides factory methods for creating various non-blocking input/output components used in JLine. These components allow for non-blocking reading operations, which are essential for interactive terminal applications that need to perform other tasks while waiting for user input.

    This class offers methods to create:

    • Non-blocking readers from various sources (streams, readers)
    • Non-blocking input streams
    • Pump readers and streams for buffered non-blocking I/O
    • Character encoding/decoding utilities for non-blocking I/O

    The non-blocking components created by this factory are used throughout JLine to implement features like input handling with timeouts, background processing while waiting for input, and efficient terminal I/O.