Package jnr.enxio.channels
Class Common
- java.lang.Object
-
- jnr.enxio.channels.Common
-
final class Common extends java.lang.Object
Helper class, providing common methods.
-
-
Field Summary
Fields Modifier and Type Field Description private int
_fd
-
Constructor Summary
Constructors Constructor Description Common(int fd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getFD()
(package private) int
read(java.nio.ByteBuffer dst)
(package private) long
read(java.nio.ByteBuffer[] dsts, int offset, int length)
(package private) void
setFD(int fd)
(package private) int
write(java.nio.ByteBuffer src)
(package private) long
write(java.nio.ByteBuffer[] srcs, int offset, int length)
-
-
-
Method Detail
-
setFD
void setFD(int fd)
-
getFD
int getFD()
-
read
int read(java.nio.ByteBuffer dst) throws java.io.IOException
- Throws:
java.io.IOException
-
read
long read(java.nio.ByteBuffer[] dsts, int offset, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
write
int write(java.nio.ByteBuffer src) throws java.io.IOException
- Throws:
java.io.IOException
-
write
long write(java.nio.ByteBuffer[] srcs, int offset, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
-