- All Implemented Interfaces:
- Closeable, AutoCloseable, Channel
- Direct Known Subclasses:
- IOChannel.IOReadableByteChannel, IOChannel.IOReadableWritableByteChannel, IOChannel.IOWritableByteChannel
public abstract class IOChannel
extends Object
implements Channel
This class wraps a IRubyObject in an OutputStream. Depending on which messages
the IRubyObject answers to, it will have different functionality.
The point is that the IRubyObject could exhibit duck typing, in the style of IO versus StringIO, for example.
At the moment, the only functionality supported is writing, and the only requirement on the io-object is
that it responds to write() and close() like IO.
- Author:
- Ola Bini