Module: Java::java::nio::channels::Channel

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 channels (java.nio.channels.Channel) are convertible to Ruby `IO`.

See Also:

Instance Method Summary (collapse)

Instance Method Details

- (IO) to_io(opts = nil)

Convert a Java channel 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)


39
40
41
# File 'core/src/main/ruby/jruby/java/java_ext/java.io.rb', line 39

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