org.jruby
Class RubyStringIO

java.lang.Object
  extended by org.jruby.RubyBasicObject
      extended by org.jruby.RubyObject
          extended by org.jruby.RubyStringIO
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<IRubyObject>, InstanceVariables, InternalVariables, IRubyObject, CoreObjectType

public class RubyStringIO
extends RubyObject

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.ObjectMethods
 
Nested classes/interfaces inherited from class org.jruby.RubyBasicObject
RubyBasicObject.BasicObjectMethods, RubyBasicObject.Finalizer
 
Field Summary
static ByteList NEWLINE
           
 
Fields inherited from class org.jruby.RubyObject
OBJECT_ALLOCATOR
 
Fields inherited from class org.jruby.RubyBasicObject
ALL_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
protected RubyStringIO(Ruby runtime, RubyClass klass)
           
 
Method Summary
 IRubyObject append(ThreadContext context, IRubyObject arg)
           
 IRubyObject binmode()
           
protected  void checkFrozen()
          The actual method that checks frozen with the default frozen message from MRI.
 IRubyObject close_read()
           
 IRubyObject close_write()
           
 IRubyObject close()
           
 IRubyObject closed_p()
           
 IRubyObject closed_read_p()
           
 IRubyObject closed_write_p()
           
static RubyClass createStringIOClass(Ruby runtime)
           
 IRubyObject each_byte(ThreadContext context, Block block)
           
 IRubyObject each_line(ThreadContext context, IRubyObject[] args, Block block)
           
 IRubyObject each(ThreadContext context, IRubyObject[] args, Block block)
           
 IRubyObject eof()
           
 IRubyObject fcntl()
           
 IRubyObject fileno()
           
 IRubyObject flush()
           
 IRubyObject fsync()
           
 IRubyObject getc()
           
 IRubyObject gets(ThreadContext context, IRubyObject[] args)
           
 IRubyObject getsOnly(ThreadContext context, IRubyObject[] args)
           
 IRubyObject initialize_copy(IRubyObject other)
          rb_obj_init_copy Initializes this object as a copy of the original, that is the parameter to this object.
 IRubyObject initialize(IRubyObject[] args, Block unusedBlock)
           
 IRubyObject isatty()
           
 IRubyObject length()
           
 IRubyObject lineno()
           
static IRubyObject open(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
           
 IRubyObject path()
           
 IRubyObject pid()
           
 IRubyObject pos()
           
 IRubyObject print(ThreadContext context, IRubyObject[] args)
           
 IRubyObject printf(ThreadContext context, IRubyObject[] args)
           
 IRubyObject putc(IRubyObject obj)
           
 IRubyObject puts(ThreadContext context, IRubyObject[] args)
           
 IRubyObject read(IRubyObject[] args)
           
 IRubyObject readchar()
           
 IRubyObject readline(ThreadContext context, IRubyObject[] args)
           
 IRubyObject readlines(ThreadContext context, IRubyObject[] arg)
           
 IRubyObject reopen(IRubyObject[] args)
           
 IRubyObject rewind()
           
 IRubyObject seek(IRubyObject[] args)
           
 IRubyObject set_lineno(IRubyObject arg)
           
 IRubyObject set_pos(IRubyObject arg)
           
 IRubyObject set_string(IRubyObject arg)
           
 IRubyObject set_sync(IRubyObject args)
           
 IRubyObject string()
           
 IRubyObject sync()
           
 IRubyObject sysread(IRubyObject[] args)
           
 IRubyObject truncate(IRubyObject arg)
           
 IRubyObject ungetc(IRubyObject arg)
           
 IRubyObject write(ThreadContext context, IRubyObject arg)
           
 
Methods inherited from class org.jruby.RubyObject
as, attachToObjectSpace, callInit, convertToType, createObjectClass, display, dup, eql_p, eqlInternal, equal_p, equalInternal, equals, evalUnder, evalUnder, extend, freeze, frozen_p, getNativeTypeIndex, hash, hashCode, id_deprecated, id, initialize, inspect, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval, instance_exec, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, kind_of_p, method, methods, nil_p, op_eqq, op_equal, op_match, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, respond_to_p, respond_to_p, send, send, send, send, send, singleton_methods, singleton_methods19, singletonMethods, specificEval, specificEval, specificEval, specificEval, specificEval, taint, tainted_p, to_a, to_java, to_s, toString, trust, type_deprecated, type, untaint, untrust, untrusted_p, validateInstanceVariable
 
Methods inherited from class org.jruby.RubyBasicObject
addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkStringType, compareTo, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataWrapStruct, ensureInstanceVariablesSettable, eql, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, getFlag, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getJavaClass, getMetaClass, getRuntime, getSingletonClass, getSingletonClassClone, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hasInstanceVariable, hasInternalVariable, hasVariables, infectBy, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isTaint, isTrue, isUntrusted, makeMetaClass, op_not_equal, op_not, removeFinalizers, removeInstanceVariable, removeInternalVariable, respondsTo, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setTaint, setUntrusted, setVariable, syncVariables, taint, testFrozen, testFrozen, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableGetSize, variableTableRemove, variableTableStore, variableTableSync
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NEWLINE

public static final ByteList NEWLINE
Constructor Detail

RubyStringIO

protected RubyStringIO(Ruby runtime,
                       RubyClass klass)
Method Detail

createStringIOClass

public static RubyClass createStringIOClass(Ruby runtime)

open

public static IRubyObject open(ThreadContext context,
                               IRubyObject recv,
                               IRubyObject[] args,
                               Block block)

initialize

public IRubyObject initialize(IRubyObject[] args,
                              Block unusedBlock)

initialize_copy

public IRubyObject initialize_copy(IRubyObject other)
Description copied from class: RubyObject
rb_obj_init_copy Initializes this object as a copy of the original, that is the parameter to this object. Will make sure that the argument actually has the same real class as this object. It shouldn't be possible to initialize an object with something totally different.

Overrides:
initialize_copy in class RubyObject

append

public IRubyObject append(ThreadContext context,
                          IRubyObject arg)

binmode

public IRubyObject binmode()

close

public IRubyObject close()

closed_p

public IRubyObject closed_p()

close_read

public IRubyObject close_read()

closed_read_p

public IRubyObject closed_read_p()

close_write

public IRubyObject close_write()

closed_write_p

public IRubyObject closed_write_p()

each

public IRubyObject each(ThreadContext context,
                        IRubyObject[] args,
                        Block block)

each_byte

public IRubyObject each_byte(ThreadContext context,
                             Block block)

each_line

public IRubyObject each_line(ThreadContext context,
                             IRubyObject[] args,
                             Block block)

eof

public IRubyObject eof()

fcntl

public IRubyObject fcntl()

fileno

public IRubyObject fileno()

flush

public IRubyObject flush()

fsync

public IRubyObject fsync()

getc

public IRubyObject getc()

gets

public IRubyObject gets(ThreadContext context,
                        IRubyObject[] args)

getsOnly

public IRubyObject getsOnly(ThreadContext context,
                            IRubyObject[] args)

isatty

public IRubyObject isatty()

length

public IRubyObject length()

lineno

public IRubyObject lineno()

set_lineno

public IRubyObject set_lineno(IRubyObject arg)

path

public IRubyObject path()

pid

public IRubyObject pid()

pos

public IRubyObject pos()

set_pos

public IRubyObject set_pos(IRubyObject arg)

print

public IRubyObject print(ThreadContext context,
                         IRubyObject[] args)

printf

public IRubyObject printf(ThreadContext context,
                          IRubyObject[] args)

putc

public IRubyObject putc(IRubyObject obj)

puts

public IRubyObject puts(ThreadContext context,
                        IRubyObject[] args)

read

public IRubyObject read(IRubyObject[] args)

readchar

public IRubyObject readchar()

readline

public IRubyObject readline(ThreadContext context,
                            IRubyObject[] args)

readlines

public IRubyObject readlines(ThreadContext context,
                             IRubyObject[] arg)

reopen

public IRubyObject reopen(IRubyObject[] args)

rewind

public IRubyObject rewind()

seek

public IRubyObject seek(IRubyObject[] args)

set_string

public IRubyObject set_string(IRubyObject arg)

set_sync

public IRubyObject set_sync(IRubyObject args)

string

public IRubyObject string()

sync

public IRubyObject sync()

sysread

public IRubyObject sysread(IRubyObject[] args)

truncate

public IRubyObject truncate(IRubyObject arg)

ungetc

public IRubyObject ungetc(IRubyObject arg)

write

public IRubyObject write(ThreadContext context,
                         IRubyObject arg)

checkFrozen

protected void checkFrozen()
Description copied from class: RubyObject
The actual method that checks frozen with the default frozen message from MRI. If possible, call this instead of RubyBasicObject.testFrozen(java.lang.String).

Overrides:
checkFrozen in class RubyObject


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