Package jnr.enxio.channels
Class Native
- java.lang.Object
-
- jnr.enxio.channels.Native
-
public final class Native extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNative.LibCprivate static classNative.SingletonHolderstatic classNative.Timespec
-
Constructor Summary
Constructors Constructor Description Native()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intclose(int fd)static jnr.constants.platform.ErrnogetLastError()static java.lang.StringgetLastErrorString()(package private) static jnr.ffi.RuntimegetRuntime()(package private) static Native.LibClibc()static intread(int fd, java.nio.ByteBuffer dst)static voidsetBlocking(int fd, boolean block)static intshutdown(int fd, int how)static intwrite(int fd, java.nio.ByteBuffer src)
-
-
-
Method Detail
-
libc
static Native.LibC libc()
-
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
public static jnr.constants.platform.Errno getLastError()
-
-