Class Native
java.lang.Object
jnr.enxio.channels.Native
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprivate static final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intclose(int fd) static jnr.constants.platform.Errnostatic String(package private) static jnr.ffi.Runtime(package private) static Native.LibClibc()static intread(int fd, ByteBuffer dst) static voidsetBlocking(int fd, boolean block) static intshutdown(int fd, int how) static intwrite(int fd, ByteBuffer src)
-
Constructor Details
-
Native
public Native()
-
-
Method Details
-
libc
-
getRuntime
static jnr.ffi.Runtime getRuntime() -
close
- Throws:
IOException
-
read
- Throws:
IOException
-
write
- Throws:
IOException
-
setBlocking
public static void setBlocking(int fd, boolean block) -
shutdown
public static int shutdown(int fd, int how) -
getLastErrorString
-
getLastError
public static jnr.constants.platform.Errno getLastError()
-