Class 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.

    See Also:
    For details on how the native library is loaded and configured
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JLineLibrary

        public JLineLibrary()
    • Method Detail

      • newFileDescriptor

        public static java.io.FileDescriptor newFileDescriptor​(int fd)
      • newRedirectPipe

        public static java.lang.ProcessBuilder.Redirect newRedirectPipe​(java.io.FileDescriptor fd)