Class: Java::java::io::InputStream

Inherits:
Object
  • Object
show all
Defined in:
core/src/main/ruby/jruby/java/java_ext/java.io.rb

Overview

Note:

Only explicit (or customized) Ruby methods are listed here, instances will have all of their Java methods available.

Java java.io.InputStream objects are convertible to Ruby `IO`.

See Also:

Instance Method Summary (collapse)

Instance Method Details

- (IO) to_io(opts = nil)

Convert a Java input stream to a Ruby `IO`.

Parameters:

  • opts (Hash) (defaults to: nil)

    a customizable set of options

Options Hash (opts):

  • autoclose (Types)

    changes `IO#autoclose=` if set

Returns:

  • (IO)


13
14
15
# File 'core/src/main/ruby/jruby/java/java_ext/java.io.rb', line 13

def to_io(opts = nil)
  # stub implemented in org.jruby.javasupport.ext.JavaIo.java
end