Class IOInputStream

java.lang.Object
java.io.InputStream
org.jruby.util.IOInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class IOInputStream extends InputStream
This class wraps a IRubyObject in an InputStream. 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 reading, and the only requirement on the io-object is that it responds to read() like IO.