Package jnr.enxio.channels
Class Native
java.lang.Object
jnr.enxio.channels.Native
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
private static final class
static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
close
(int fd) static jnr.constants.platform.Errno
static String
(package private) static jnr.ffi.Runtime
(package private) static Native.LibC
libc()
static int
read
(int fd, ByteBuffer dst) static void
setBlocking
(int fd, boolean block) static int
shutdown
(int fd, int how) static int
write
(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()
-