Top Description Inners Constructors Methods
org.jruby.util.io

public Class Getline

extends Object
Class Inheritance
Imports
org.jcodings.Encoding, org.jruby.RubyHash, .RubyString, org.jruby.ast.util.ArgsUtil, org.jruby.runtime.Block, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.StringSupport, .TypeConverter

Encapsulation of the prepare_getline_args logic from MRI, used by StringIO and IO.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
Getline.Callback<Self, Return extends IRubyObject>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io)

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0)
Deprecated

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, boolean keywords)

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1)
Deprecated

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, boolean keywords)

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
Deprecated

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, boolean keywords)

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, Block block)

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, Block block)
Deprecated

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, Block block, boolean keywords)

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, Block block)
Deprecated

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, Block block, boolean keywords)

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
Deprecated

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block, boolean keywords)

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject... args)
Deprecated

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, boolean keywords, IRubyObject... args)

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, int argc, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
Deprecated

public static <Self, Return extends IRubyObject> Return
getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, int argc, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block, boolean keywords)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Getlineback to summary
public Getline()

Method Detail

getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io)
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0)

Deprecated

Annotations
@Deprecated
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, boolean keywords)
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1)

Deprecated

Annotations
@Deprecated
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, boolean keywords)
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)

Deprecated

Annotations
@Deprecated
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, boolean keywords)
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, Block block)
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, Block block)

Deprecated

Annotations
@Deprecated
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, Block block, boolean keywords)
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, Block block)

Deprecated

Annotations
@Deprecated
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, Block block, boolean keywords)
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)

Deprecated

Annotations
@Deprecated
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block, boolean keywords)
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, IRubyObject... args)

Deprecated

Annotations
@Deprecated
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, boolean keywords, IRubyObject... args)
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, int argc, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)

Deprecated

Annotations
@Deprecated
getlineCallback to summary
public static <Self, Return extends IRubyObject> Return getlineCall(ThreadContext context, Getline.Callback<Self, Return> getline, Self self, Encoding enc_io, int argc, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block, boolean keywords)
org.jruby.util.io back to summary

public Interface Getline.Callback<Self, Return extends IRubyObject>


Method Summary

Modifier and TypeMethod and Description
public Return
getline(ThreadContext context, Self self, IRubyObject rs, int limit, boolean chomp, Block block)

Method Detail

getlineback to summary
public Return getline(ThreadContext context, Self self, IRubyObject rs, int limit, boolean chomp, Block block)