| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private volatile boolean | |
| private final LibC |
| Access | Constructor and Description |
|---|---|
| public | FileDescriptorByteChannel(Ruby runtime, int
The native unix fd to read/write. fd)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: true if the Channel is still openImplements java. Tests if the ByteChannel is open. |
| private static LibC | |
| public int | Returns: The number of bytes read.The destination dst)ByteBuffer to place read bytes in.Implements java. Reads data from the native unix file descriptor. |
| public int | Returns: The number of bytes written.The source src)ByteBuffer to write to the file descriptor.Implements java. Writes data to the native unix file descriptor. |
| fd | back to summary |
|---|---|
| private final int fd | |
| isOpen | back to summary |
|---|---|
| private volatile boolean isOpen | |
| libc | back to summary |
|---|---|
| private final LibC libc | |
| FileDescriptorByteChannel | back to summary |
|---|---|
| public FileDescriptorByteChannel(Ruby runtime, int fd) Creates a new
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Closes the This closes the underlying native file descriptor.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements java. Tests if the ByteChannel is open.
| |
| libc | back to summary |
|---|---|
| private static LibC libc(Ruby runtime) | |
| read | back to summary |
|---|---|
| public int read(ByteBuffer dst) throws IOException Implements java. Reads data from the native unix file descriptor.
| |
| write | back to summary |
|---|---|
| public int write(ByteBuffer src) throws IOException Implements java. Writes data to the native unix file descriptor.
| |