public abstract class IOChannel
extends java.lang.Object
implements java.nio.channels.Channel
Modifier and Type | Class and Description |
---|---|
static class |
IOChannel.IOReadableByteChannel
A
ReadableByteChannel wrapper around an IO-like Ruby object. |
static class |
IOChannel.IOReadableWritableByteChannel
A
ReadableByteChannel and WritableByteChannel wrapper around an IO-like Ruby object. |
static class |
IOChannel.IOWritableByteChannel
A
WritableByteChannel wrapper around an IO-like Ruby object. |
Modifier | Constructor and Description |
---|---|
protected |
IOChannel(IRubyObject io) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected CallSite |
initReadSite(java.lang.String readMethod) |
protected CallSite |
initWriteSite() |
boolean |
isOpen() |
protected int |
read(CallSite read,
java.nio.ByteBuffer dst) |
protected int |
write(CallSite write,
java.nio.ByteBuffer src) |
protected IOChannel(IRubyObject io)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
java.io.IOException
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
protected int read(CallSite read, java.nio.ByteBuffer dst) throws java.io.IOException
java.io.IOException
protected int write(CallSite write, java.nio.ByteBuffer src) throws java.io.IOException
java.io.IOException
protected CallSite initReadSite(java.lang.String readMethod)
protected CallSite initWriteSite()
Copyright © 2001-2020 JRuby. All Rights Reserved.