org.jruby.libraries
Class IOWaitLibrary

java.lang.Object
  extended by org.jruby.libraries.IOWaitLibrary
All Implemented Interfaces:
Library

public class IOWaitLibrary
extends java.lang.Object
implements Library

Author:
Nick Sieger

Constructor Summary
IOWaitLibrary()
           
 
Method Summary
static IRubyObject io_wait(ThreadContext context, IRubyObject obj)
          waits until input available or timed out and returns self, or nil when EOF reached.
 void load(Ruby runtime, boolean wrap)
           
static IRubyObject ready(ThreadContext context, IRubyObject obj)
          returns non-nil if input available without blocking, false if EOF or not open/readable, otherwise nil.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOWaitLibrary

public IOWaitLibrary()
Method Detail

load

public void load(Ruby runtime,
                 boolean wrap)
Specified by:
load in interface Library

ready

public static IRubyObject ready(ThreadContext context,
                                IRubyObject obj)
returns non-nil if input available without blocking, false if EOF or not open/readable, otherwise nil.


io_wait

public static IRubyObject io_wait(ThreadContext context,
                                  IRubyObject obj)
waits until input available or timed out and returns self, or nil when EOF reached.



Copyright © 2002-2009 JRuby Team. All Rights Reserved.