do
{
line.set( stream.readLine() );
block.yield( context, JavaEmbedUtils.javaToRuby( getRuntime(), line.get() ) );
}
while( line.get() != null && stream.available() > 0 );
}
catch( IOException e )
{
throw getRuntime().newIOError( e.getLocalizedMessage() );
}