public static class IOChannel.IOReadableWritableByteChannel extends IOChannel implements java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannel
ReadableByteChannel and WritableByteChannel wrapper around an IO-like Ruby object.IOChannel.IOReadableByteChannel, IOChannel.IOReadableWritableByteChannel, IOChannel.IOWritableByteChannel| Constructor and Description |
|---|
IOReadableWritableByteChannel(IRubyObject io) |
| Modifier and Type | Method and Description |
|---|---|
int |
read(java.nio.ByteBuffer dst) |
int |
write(java.nio.ByteBuffer src) |
close, initReadSite, initWriteSite, isOpen, read, writepublic IOReadableWritableByteChannel(IRubyObject io)
public int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface java.nio.channels.ReadableByteChanneljava.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
write in interface java.nio.channels.WritableByteChanneljava.io.IOExceptionCopyright © 2001-2019 JRuby. All Rights Reserved.