Class Native


  • final class Native
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Native()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int close​(int fd)  
      (package private) static jnr.constants.platform.Errno getLastError()  
      static java.lang.String getLastErrorString()  
      (package private) static jnr.ffi.Runtime getRuntime()  
      (package private) static Native.LibC libc()  
      static int read​(int fd, java.nio.ByteBuffer dst)  
      static void setBlocking​(int fd, boolean block)  
      static int shutdown​(int fd, int how)  
      static int write​(int fd, java.nio.ByteBuffer src)  
      • Methods inherited from class java.lang.Object

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

      • Native

        Native()
    • Method Detail

      • getRuntime

        static jnr.ffi.Runtime getRuntime()
      • close

        public static int close​(int fd)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public static int read​(int fd,
                               java.nio.ByteBuffer dst)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public static int write​(int fd,
                                java.nio.ByteBuffer src)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • setBlocking

        public static void setBlocking​(int fd,
                                       boolean block)
      • shutdown

        public static int shutdown​(int fd,
                                   int how)
      • getLastErrorString

        public static java.lang.String getLastErrorString()
      • getLastError

        static jnr.constants.platform.Errno getLastError()