Package jnr.enxio.channels
Class Native
java.lang.Object
jnr.enxio.channels.Native
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intclose(int fd) static jnr.constants.platform.Errnostatic Stringstatic 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
-
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()
-