Class JLineLibrary
- java.lang.Object
-
- org.jline.nativ.JLineLibrary
-
public class JLineLibrary extends java.lang.Object
Native interface for JLine's low-level system operations.This class provides access to native methods that are implemented in the JLine native library. It automatically initializes the native library using
JLineNativeLoader.initialize()
when the class is loaded.The native methods in this class provide functionality that is not available through standard Java APIs, such as creating file descriptors and process redirects directly from file descriptors.
This class is primarily used internally by JLine's terminal implementations, particularly those that require direct access to native system calls. Users of JLine typically do not need to interact with this class directly.
If the native library cannot be loaded, attempts to use methods in this class will result in
UnsatisfiedLinkError
exceptions.
-
-
Constructor Summary
Constructors Constructor Description JLineLibrary()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.FileDescriptor
newFileDescriptor(int fd)
static java.lang.ProcessBuilder.Redirect
newRedirectPipe(java.io.FileDescriptor fd)
-