Package org.jline.utils
Class NonBlocking
java.lang.Object
org.jline.utils.NonBlocking
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NonBlockingInputStream
nonBlocking
(String name, InputStream inputStream) static NonBlockingReader
nonBlocking
(String name, InputStream inputStream, Charset encoding) static NonBlockingReader
nonBlocking
(String name, Reader reader) static NonBlockingPumpInputStream
static NonBlockingPumpInputStream
nonBlockingPumpInputStream
(int size) static NonBlockingPumpReader
static NonBlockingPumpReader
nonBlockingPumpReader
(int size) static NonBlockingInputStream
nonBlockingStream
(NonBlockingReader reader, Charset encoding)
-
Constructor Details
-
NonBlocking
public NonBlocking()
-
-
Method Details
-
nonBlockingPumpReader
-
nonBlockingPumpReader
-
nonBlockingPumpInputStream
-
nonBlockingPumpInputStream
-
nonBlockingStream
-
nonBlocking
-
nonBlocking
-
nonBlocking
-