- java.lang.Object
-
- jnr.enxio.channels.Native
-
public final class Native extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNative.LibCstatic 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 StringgetLastErrorString()static intread(int fd, ByteBuffer dst)static voidsetBlocking(int fd, boolean block)static intshutdown(int fd, int how)static intwrite(int fd, ByteBuffer src)
-
-
-
Method Detail
-
close
public static int close(int fd) throws IOException- Throws:
IOException
-
read
public static int read(int fd, ByteBuffer dst) throws IOException- Throws:
IOException
-
write
public static int write(int fd, ByteBuffer src) throws IOException- Throws:
IOException
-
setBlocking
public static void setBlocking(int fd, boolean block)
-
shutdown
public static int shutdown(int fd, int how)
-
getLastErrorString
public static String getLastErrorString()
-
getLastError
public static jnr.constants.platform.Errno getLastError()
-
-