Examples of selectChannel()


Examples of org.jruby.util.io.OpenFile.selectChannel()

    @JRubyMethod(required = 1, visibility = Visibility.PRIVATE)
    public static IRubyObject initialize(IRubyObject recv, IRubyObject io) {
        if (io instanceof RubyIO) {
            RubyIO rubyIO = (RubyIO)io;
            OpenFile of = rubyIO.getOpenFile();
            if (of.selectChannel() != null)  {
                SelectableChannel selChannel = of.selectChannel();

                ((RubyObject)recv).extend(
                        new IRubyObject[]{((RubyModule)recv.getRuntime().getModule("Net").getConstant("BufferedIO")).getConstant("NativeImplementation")});
                SelectableChannel sc = (SelectableChannel)(selChannel);
View Full Code Here

Examples of org.jruby.util.io.OpenFile.selectChannel()

    public static IRubyObject initialize(IRubyObject recv, IRubyObject io) {
        if (io instanceof RubyIO) {
            RubyIO rubyIO = (RubyIO)io;
            OpenFile of = rubyIO.getOpenFile();
            if (of.selectChannel() != null)  {
                SelectableChannel selChannel = of.selectChannel();

                ((RubyObject)recv).extend(
                        new IRubyObject[]{((RubyModule)recv.getRuntime().getModule("Net").getConstant("BufferedIO")).getConstant("NativeImplementation")});
                SelectableChannel sc = (SelectableChannel)(selChannel);
                recv.dataWrapStruct(new NativeImpl(sc));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.