public class RubyIO extends RubyObject implements IOEncodable, java.io.Closeable, java.io.Flushable
Modifier and Type | Class and Description |
---|---|
static class |
RubyIO.Sysopen |
RubyObject.Data
RubyBasicObject.Finalizer
IOEncodable.ConvConfig
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLOSED_STREAM_MSG |
static int |
FD_CLOEXEC |
protected OpenFile |
openFile |
static ByteList |
PARAGRAPH_SEPARATOR |
protected boolean |
popenSpecial
If the stream is being used for popen, we don't want to destroy the process
when we close the stream.
|
IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATOR
ALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, IS_OVERLAID_F, metaClass, NEVER, NIL_F, REFINED_MODULE_F, STAMP_OFFSET, TAINTED_F, UNDEF, UNTRUST_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F, USER9_F, USERA_F, VAR_TABLE_OFFSET, varTable, varTableStamp
NULL_ARRAY
Constructor and Description |
---|
RubyIO(Ruby runtime,
java.nio.channels.Channel channel) |
RubyIO(Ruby runtime,
java.io.InputStream inputStream) |
RubyIO(Ruby runtime,
java.io.OutputStream outputStream) |
RubyIO(Ruby runtime,
java.io.OutputStream outputStream,
boolean autoclose) |
RubyIO(Ruby runtime,
RubyClass type) |
RubyIO(Ruby runtime,
RubyClass klass,
java.nio.channels.Channel channel) |
RubyIO(Ruby runtime,
RubyClass cls,
ShellLauncher.POpenProcess process,
RubyHash options,
IOOptions ioOptions)
Deprecated.
|
RubyIO(Ruby runtime,
ShellLauncher.POpenProcess process,
IOOptions ioOptions) |
RubyIO(Ruby runtime,
STDIO stdio)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addBlockingThread(RubyThread thread)
Add a thread to the list of blocking threads for this IO.
|
IRubyObject |
advise(ThreadContext context,
IRubyObject[] argv) |
IRubyObject |
autoclose_set(ThreadContext context,
IRubyObject autoclose) |
IRubyObject |
autoclose(ThreadContext context) |
IRubyObject |
binmode() |
static IRubyObject |
binread(ThreadContext context,
IRubyObject recv,
IRubyObject[] args)
binread is just like read, except it doesn't take options and it forces
mode to be "rb:ASCII-8BIT"
|
static IRubyObject |
binwrite(ThreadContext context,
IRubyObject recv,
IRubyObject[] args) |
IRubyObject |
bytes(ThreadContext context,
Block block) |
IRubyObject |
chars(ThreadContext context,
Block block) |
IRubyObject |
chars19(ThreadContext context,
Block block)
Deprecated.
|
static RubyArray |
checkExecEnv(ThreadContext context,
RubyHash hash)
Deprecated.
|
static void |
checkExecOptions(IRubyObject options)
Deprecated.
|
protected void |
checkLength(ThreadContext context,
int len) |
static void |
checkPopenOptions(IRubyObject options)
Deprecated.
|
static void |
checkSpawnOptions(IRubyObject options)
Deprecated.
|
static ChannelFD |
cloexecOpen(Ruby runtime,
RubyIO.Sysopen data) |
IRubyObject |
close_on_exec_p(ThreadContext context) |
IRubyObject |
close_on_exec_set(ThreadContext context,
IRubyObject arg) |
IRubyObject |
close_read(ThreadContext context) |
IRubyObject |
close_write(ThreadContext context) |
void |
close() |
IRubyObject |
close(ThreadContext context)
Closes all open resources for the IO.
|
RubyBoolean |
closed_p(ThreadContext context) |
IRubyObject |
codepoints(ThreadContext context,
Block block) |
static RubyIO |
convertToIO(ThreadContext context,
IRubyObject obj) |
static IRubyObject |
copy_stream(ThreadContext context,
IRubyObject recv,
IRubyObject[] args) |
static RubyClass |
createIOClass(Ruby runtime) |
protected static int |
doRead(ThreadContext context,
OpenFile fptr,
byte[] buffer,
int start,
int len) |
IRubyObject |
doReadNonblock(ThreadContext context,
IRubyObject[] args,
boolean exception) |
IRubyObject |
doWriteNonblock(ThreadContext context,
IRubyObject[] argv,
boolean useException)
Deprecated.
|
IRubyObject |
each_byte(ThreadContext context,
Block block) |
IRubyObject |
each_byteInternal(ThreadContext context,
Block block)
Invoke a block for each byte.
|
IRubyObject |
each_char(ThreadContext context,
Block block) |
IRubyObject |
each_char19(ThreadContext context,
Block block)
Deprecated.
|
IRubyObject |
each_charInternal(ThreadContext context,
Block block) |
IRubyObject |
each_codepoint(ThreadContext context,
Block block) |
IRubyObject |
each_line(ThreadContext context,
Block block) |
IRubyObject |
each_line(ThreadContext context,
IRubyObject[] args,
Block block) |
IRubyObject |
each_line(ThreadContext context,
IRubyObject arg0,
Block block) |
IRubyObject |
each_line(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
IRubyObject |
each_line(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
IRubyObject |
each(ThreadContext context,
Block block) |
IRubyObject |
each(ThreadContext context,
IRubyObject[] args,
Block block) |
IRubyObject |
each(ThreadContext context,
IRubyObject arg0,
Block block) |
IRubyObject |
each(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
IRubyObject |
each(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
static IRubyObject |
ensureYieldClose(ThreadContext context,
IRubyObject port,
Block block) |
static IRubyObject |
ensureYieldClosePipes(ThreadContext context,
IRubyObject obj,
RubyIO r,
RubyIO w,
Block block) |
RubyBoolean |
eof_p(ThreadContext context) |
IRubyObject |
external_encoding(ThreadContext context) |
static void |
failIfDirectory(Ruby runtime,
RubyString pathStr) |
IRubyObject |
fcntl(ThreadContext context,
IRubyObject cmd) |
IRubyObject |
fcntl(ThreadContext context,
IRubyObject cmd,
IRubyObject arg) |
RubyFixnum |
fileno(ThreadContext context) |
void |
flush() |
RubyIO |
flush(ThreadContext context)
Flushes the IO output stream.
|
protected RubyIO |
flushRaw(ThreadContext context,
boolean sync) |
static IRubyObject |
for_fd(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block block) |
static IRubyObject |
foreach(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block block) |
RubyFixnum |
fsync(ThreadContext context) |
boolean |
getBlocking() |
boolean |
getBOM() |
IRubyObject |
getbyte(ThreadContext context)
Read a byte.
|
int |
getByte(ThreadContext context) |
IRubyObject |
getc()
Deprecated.
|
IRubyObject |
getc(ThreadContext context) |
IRubyObject |
getc19(ThreadContext context)
Deprecated.
|
java.nio.channels.Channel |
getChannel()
Get the underlying channel from this IO object.
|
int |
getEcflags() |
IRubyObject |
getEcopts() |
org.jcodings.Encoding |
getEnc() |
org.jcodings.Encoding |
getEnc2() |
org.jcodings.Encoding |
getInputEncoding() |
java.io.InputStream |
getInStream() |
static ModeFlags |
getIOModes(Ruby runtime,
java.lang.String modesString)
Deprecated.
|
static int |
getIOModesIntFromString(Ruby runtime,
java.lang.String modesString)
Deprecated.
|
IRubyObject |
getline(Ruby runtime,
ByteList separator)
Deprecated.
|
IRubyObject |
getline(Ruby runtime,
ByteList separator,
long limit)
Deprecated.
|
IRubyObject |
getline(ThreadContext context,
ByteList separator)
Deprecated.
|
IRubyObject |
getline(ThreadContext context,
ByteList separator,
long limit)
Deprecated.
|
IRubyObject |
getline(ThreadContext context,
IRubyObject separator) |
IRubyObject |
getline(ThreadContext context,
IRubyObject separator,
long limit)
getline using logic of gets.
|
ClassIndex |
getNativeClassIndex()
This is overridden in the other concrete Java builtins to provide a fast way
to determine what type they are.
|
OpenFile |
getOpenFile() |
OpenFile |
getOpenFileChecked() |
OpenFile |
getOpenFileInitialized() |
java.io.OutputStream |
getOutStream() |
org.jcodings.Encoding |
getReadEncoding() |
IRubyObject |
gets(ThreadContext context)
Read a line.
|
IRubyObject |
gets(ThreadContext context,
IRubyObject arg) |
IRubyObject |
gets(ThreadContext context,
IRubyObject rs,
IRubyObject limit_arg) |
IRubyObject |
gets(ThreadContext context,
IRubyObject rs,
IRubyObject limit_arg,
IRubyObject opt) |
boolean |
getSync() |
RubyIO |
GetWriteIO() |
IRubyObject |
initialize_copy(IRubyObject _io)
rb_obj_init_copy
Initializes this object as a copy of the original, that is the
parameter to this object.
|
IRubyObject |
initialize(ThreadContext context,
IRubyObject fileNumber,
Block unused) |
IRubyObject |
initialize(ThreadContext context,
IRubyObject fileNumber,
IRubyObject second,
Block unused) |
IRubyObject |
initialize(ThreadContext context,
IRubyObject fileNumber,
IRubyObject modeValue,
IRubyObject options,
Block unused) |
IRubyObject |
inspect()
rb_obj_inspect
call-seq:
obj.inspect => string
Returns a string containing a human-readable representation of
obj.
|
IRubyObject |
internal_encoding(ThreadContext context) |
protected static IRubyObject |
ioClose(ThreadContext context,
IRubyObject io) |
IRubyObject |
ioctl(ThreadContext context,
IRubyObject[] args) |
static IRubyObject |
ioOpen(ThreadContext context,
IRubyObject filename,
IRubyObject vmode,
IRubyObject vperm,
IRubyObject opt)
Deprecated.
|
static IRubyObject |
ioOpen(ThreadContext context,
IRubyObject recv,
IRubyObject filename,
IRubyObject vmode,
IRubyObject vperm,
IRubyObject opt) |
static IRubyObject |
ioStaticWrite(ThreadContext context,
IRubyObject recv,
IRubyObject[] argv,
boolean binary) |
boolean |
isAutoclose() |
boolean |
isClosed()
Is this IO closed
MRI: rb_io_closed
|
RubyFixnum |
lineno_set(ThreadContext context,
IRubyObject newLineNumber)
Sets the current line number.
|
RubyFixnum |
lineno(ThreadContext context)
Returns the current line number.
|
IRubyObject |
lines(ThreadContext context,
Block block) |
IRubyObject |
lines19(ThreadContext context,
Block block)
Deprecated.
|
OpenFile |
MakeOpenFile() |
static IRubyObject |
newInstance(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block block) |
static RubyIO |
newIO(Ruby runtime,
java.nio.channels.Channel channel) |
static IOOptions |
newIOOptions(Ruby runtime,
int mode) |
static IOOptions |
newIOOptions(Ruby runtime,
IOOptions oldFlags,
int orOflags) |
static IOOptions |
newIOOptions(Ruby runtime,
long mode) |
static IOOptions |
newIOOptions(Ruby runtime,
ModeFlags modeFlags) |
static IOOptions |
newIOOptions(Ruby runtime,
java.lang.String mode) |
static ModeFlags |
newModeFlags(Ruby runtime,
int mode) |
static ModeFlags |
newModeFlags(Ruby runtime,
long mode) |
static ModeFlags |
newModeFlags(Ruby runtime,
java.lang.String mode) |
static void |
obliterateProcess(java.lang.Process process)
Try for around 1s to destroy the child process.
|
IRubyObject |
op_append(ThreadContext context,
IRubyObject anObject)
rb_io_addstr
|
IRubyObject |
op_binmode(ThreadContext context) |
static IRubyObject |
open(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block block) |
protected IOOptions |
parseIOOptions(IRubyObject arg) |
IRubyObject |
pid(ThreadContext context)
Return the process id (pid) of the process this IO object
spawned.
|
static IRubyObject |
pipe(ThreadContext context,
IRubyObject recv) |
static IRubyObject |
pipe(ThreadContext context,
IRubyObject klass,
IRubyObject[] argv,
Block block) |
static IRubyObject |
pipe19(ThreadContext context,
IRubyObject recv)
Deprecated.
|
static IRubyObject |
pipe19(ThreadContext context,
IRubyObject recv,
IRubyObject modes)
Deprecated.
|
static IRubyObject |
pipe19(ThreadContext context,
IRubyObject klass,
IRubyObject[] argv,
Block block)
Deprecated.
|
static IRubyObject |
popen(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block block) |
static IRubyObject |
popen3(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block block)
Deprecated.
|
static IRubyObject |
popen4(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block block)
Deprecated.
|
static org.jruby.RubyIO.POpenTuple |
popenSpecial(ThreadContext context,
IRubyObject[] args)
Deprecated.
|
RubyFixnum |
pos_set(ThreadContext context,
IRubyObject offset) |
RubyFixnum |
pos(ThreadContext context) |
IRubyObject |
pread(ThreadContext context,
IRubyObject len,
IRubyObject offset) |
IRubyObject |
pread(ThreadContext context,
IRubyObject len,
IRubyObject offset,
IRubyObject str) |
static RubyIO |
prepStdio(Ruby runtime,
java.io.InputStream f,
java.nio.channels.Channel c,
int fmode,
RubyClass klass,
java.lang.String path) |
static RubyIO |
prepStdio(Ruby runtime,
java.io.OutputStream f,
java.nio.channels.Channel c,
int fmode,
RubyClass klass,
java.lang.String path) |
IRubyObject |
print(ThreadContext context,
IRubyObject[] args)
Print some objects to the stream.
|
static IRubyObject |
print(ThreadContext context,
IRubyObject out,
IRubyObject[] args)
Print some objects to the stream.
|
IRubyObject |
printf(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
putc(ThreadContext context,
IRubyObject ch) |
static IRubyObject |
putc(ThreadContext context,
IRubyObject maybeIO,
IRubyObject object) |
IRubyObject |
puts(ThreadContext context) |
IRubyObject |
puts(ThreadContext context,
IRubyObject arg0) |
IRubyObject |
puts(ThreadContext context,
IRubyObject[] args) |
static IRubyObject |
puts(ThreadContext context,
IRubyObject maybeIO,
IRubyObject... args) |
IRubyObject |
puts(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
puts(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2) |
static IRubyObject |
puts0(ThreadContext context,
IRubyObject maybeIO) |
static IRubyObject |
puts1(ThreadContext context,
IRubyObject maybeIO,
IRubyObject arg0) |
static IRubyObject |
puts2(ThreadContext context,
IRubyObject maybeIO,
IRubyObject arg0,
IRubyObject arg1) |
static IRubyObject |
puts3(ThreadContext context,
IRubyObject maybeIO,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2) |
IRubyObject |
pwrite(ThreadContext context,
IRubyObject str,
IRubyObject offset) |
protected IRubyObject |
rbIoClose(ThreadContext context) |
IRubyObject |
read_nonblock(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
read(IRubyObject[] args) |
IRubyObject |
read(ThreadContext context)
Read all available bytes.
|
int |
read(ThreadContext context,
byte[] buffer,
int start,
int len)
Read into the given buffer starting from start and reading len bytes.
|
IRubyObject |
read(ThreadContext context,
IRubyObject length)
Read length bytes.
|
IRubyObject |
read(ThreadContext context,
IRubyObject length,
IRubyObject maybeStr)
Read into the given buffer (or create a new one) reading length bytes.
|
static IRubyObject |
read(ThreadContext context,
IRubyObject recv,
IRubyObject[] args) |
static IRubyObject |
read(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block unusedBlock) |
static IRubyObject |
read19(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block unusedBlock)
Deprecated.
|
IRubyObject |
readbyte(ThreadContext context) |
IRubyObject |
readchar()
Deprecated.
|
IRubyObject |
readchar(ThreadContext context)
Read a char.
|
IRubyObject |
readline(ThreadContext context)
Read a line.
|
IRubyObject |
readline(ThreadContext context,
IRubyObject separator) |
IRubyObject |
readline(ThreadContext context,
IRubyObject[] args)
Deprecated.
|
RubyArray |
readlines(ThreadContext context) |
RubyArray |
readlines(ThreadContext context,
IRubyObject arg0) |
RubyArray |
readlines(ThreadContext context,
IRubyObject[] args) |
RubyArray |
readlines(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1) |
static IRubyObject |
readlines(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block unusedBlock) |
RubyArray |
readlines(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2) |
RubyArray |
readlines19(ThreadContext context,
IRubyObject[] args)
Deprecated.
|
static IRubyObject |
readlines19(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block unusedBlock)
Deprecated.
|
IRubyObject |
readpartial(ThreadContext context,
IRubyObject[] args) |
void |
removeBlockingThread(RubyThread thread)
Remove a thread from the list of blocking threads for this IO.
|
IRubyObject |
reopen(ThreadContext context,
IRubyObject[] args) |
protected RubyIO |
reopenIO(ThreadContext context,
RubyIO nfile) |
RubyFixnum |
rewind(ThreadContext context) |
RubyFixnum |
seek(ThreadContext context,
IRubyObject off) |
RubyFixnum |
seek(ThreadContext context,
IRubyObject[] args) |
RubyFixnum |
seek(ThreadContext context,
IRubyObject off,
IRubyObject whence) |
static IRubyObject |
select_static(ThreadContext context,
Ruby runtime,
IRubyObject[] args)
Deprecated.
|
static IRubyObject |
select(ThreadContext context,
IRubyObject recv,
IRubyObject[] argv) |
IRubyObject |
set_encoding(ThreadContext context,
IRubyObject encodingObj) |
IRubyObject |
set_encoding(ThreadContext context,
IRubyObject encodingString,
IRubyObject internalEncoding) |
IRubyObject |
set_encoding(ThreadContext context,
IRubyObject encodingString,
IRubyObject internalEncoding,
IRubyObject options) |
protected RubyIO |
setAscii8bitBinmode() |
void |
setAutoclose(boolean autoclose) |
void |
setBlocking(boolean blocking) |
void |
setBOM(boolean bom) |
void |
setEcflags(int ecflags) |
void |
setEcopts(IRubyObject ecopts) |
void |
setEnc(org.jcodings.Encoding enc) |
void |
setEnc2(org.jcodings.Encoding enc2) |
void |
setEncoding(ThreadContext context,
IRubyObject v1,
IRubyObject v2,
IRubyObject opt) |
void |
setSync(boolean sync) |
IRubyObject |
stat(ThreadContext context) |
IRubyObject |
sync_set(IRubyObject sync)
Sets the current sync mode.
|
RubyBoolean |
sync(ThreadContext context)
Returns the current sync mode.
|
static IRubyObject |
sysopen(IRubyObject recv,
IRubyObject[] args,
Block block)
Deprecated.
|
protected static ChannelFD |
sysopen(Ruby runtime,
java.lang.String fname,
int oflags,
int perm) |
static IRubyObject |
sysopen(ThreadContext context,
IRubyObject recv,
IRubyObject[] argv,
Block block) |
static IRubyObject |
sysopen19(ThreadContext context,
IRubyObject recv,
IRubyObject[] argv,
Block block)
Deprecated.
|
IRubyObject |
sysread(ThreadContext context,
IRubyObject[] args) |
RubyFixnum |
sysseek(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
syswrite(ThreadContext context,
IRubyObject str) |
RubyIO |
to_io() |
<T> T |
toJava(java.lang.Class<T> target)
Convert the object to the specified Java class, if possible.
|
java.lang.String |
toString()
The default toString method is just a wrapper that calls the
Ruby "to_s" method.
|
static IRubyObject |
tryConvert(ThreadContext context,
IRubyObject recv,
IRubyObject arg) |
RubyBoolean |
tty_p(ThreadContext context) |
IRubyObject |
ungetbyte(ThreadContext context,
IRubyObject b) |
IRubyObject |
ungetc(ThreadContext context,
IRubyObject c) |
protected IOOptions |
updateIOOptionsFromOptions(ThreadContext context,
RubyHash options,
IOOptions ioOptions)
See http://ruby-doc.org/core-1.9.3/IO.html#method-c-new for the format of modes in options
|
IRubyObject |
write_nonblock(ThreadContext context,
IRubyObject[] argv) |
int |
write(byte[] bytes,
org.jcodings.Encoding encoding)
Same as
write(ThreadContext, byte[], int, int, Encoding, boolean) but context will be retrieved nosync
defaults to false, and the entire byte array will be written. |
int |
write(byte[] bytes,
int start,
int length,
org.jcodings.Encoding encoding)
Same as
write(ThreadContext, byte[], int, int, Encoding, boolean) but context will be retrieved and
nosync defaults to false. |
int |
write(byte[] bytes,
int start,
int length,
org.jcodings.Encoding encoding,
boolean nosync)
Same as
write(ThreadContext, byte[], int, int, Encoding, boolean) but context will be retrieved. |
void |
write(int bite)
Same as
write(ThreadContext, byte) but context will be retrieved. |
void |
write(ThreadContext context,
byte ch)
Write a single byte to this IO's write target but do not return the number of bytes written (it will be 1).
|
int |
write(ThreadContext context,
byte[] bytes,
int start,
int length,
org.jcodings.Encoding encoding)
Write the given range of bytes to this IO.
|
int |
write(ThreadContext context,
byte[] bytes,
int start,
int length,
org.jcodings.Encoding encoding,
boolean nosync)
Write the given range of bytes to this IO.
|
IRubyObject |
write(ThreadContext context,
int ch)
Write a single byte to this IO's write target.
|
IRubyObject |
write(ThreadContext context,
IRubyObject str)
Ruby method IO#write(str), equivalent to io_write_m.
|
IRubyObject |
write(ThreadContext context,
IRubyObject[] args)
Ruby method IO#write(str, ...), equivalent to io_write_m.
|
IRubyObject |
write(ThreadContext context,
IRubyObject str,
boolean nosync)
Write the given range of bytes to this IO's write target.
|
protected static IRubyObject |
write(ThreadContext context,
IRubyObject maybeIO,
ByteList byteList) |
protected static IRubyObject |
write(ThreadContext context,
IRubyObject maybeIO,
ByteList byteList,
IRubyObject sep) |
static IRubyObject |
write(ThreadContext context,
IRubyObject maybeIO,
IRubyObject str) |
static IRubyObject |
write(ThreadContext context,
IRubyObject recv,
IRubyObject[] argv) |
static IRubyObject |
write(ThreadContext context,
IRubyObject maybeIO,
IRubyObject arg0,
IRubyObject arg1) |
static IRubyObject |
writeStatic(ThreadContext context,
IRubyObject recv,
IRubyObject[] argv,
Block unusedBlock)
Deprecated.
|
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, dig, dig1, dig2, eqlInternal, equalInternal, equals, hashCode, inspect, op_eqq, puts, specificEval, toRubyString
addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkCallMethod, checkCallMethod, checkFrozen, checkStringType, checkStringType19, compareTo, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataGetStructChecked, dataWrapStruct, decode, display, dup, ensureInstanceVariablesSettable, eql_p, eql, equal_p, equal_p19, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, freeze, frozen_p, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getJavaClass, getMetaClass, getMetaClass, getNativeHandle, getNativeTypeIndex, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getSingletonClassCloneAndAttach, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hash, hashyInspect, hasInstanceVariable, hasInstanceVariables, hasInternalVariable, hasVariables, id, infectBy, initialize, initialize19, inspectHashCode, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval19, instance_eval19, instance_eval19, instance_eval19, instance_exec, instance_exec19, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, instance_variables19, isBuiltin, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isSpecialConst, isSpecialObject, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, method_missing, method_missing19, method, method19, methods, methods, methods19, nil_p, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_cmp, op_equal_19, op_equal, op_match, op_match19, op_not_equal, op_not_match, op_not, private_methods, private_methods19, protected_methods, protected_methods19, public_methods, public_methods19, rbClone, rbClone, rbInspect, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respond_to_p19, respond_to_p19, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, send19, send19, send19, send19, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setNativeHandle, setTaint, setUntrusted, setVariable, singleton_method_added, singleton_method_added19, singleton_method_removed, singleton_method_removed19, singleton_method_undefined, singleton_method_undefined19, singleton_method, singleton_methods, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, to_a, to_a, to_s, trust, type_deprecated, type, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnder
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
array
public static final ByteList PARAGRAPH_SEPARATOR
public static final java.lang.String CLOSED_STREAM_MSG
public static final int FD_CLOEXEC
protected OpenFile openFile
protected boolean popenSpecial
public RubyIO(Ruby runtime, java.io.OutputStream outputStream)
public RubyIO(Ruby runtime, java.io.OutputStream outputStream, boolean autoclose)
public RubyIO(Ruby runtime, java.io.InputStream inputStream)
public RubyIO(Ruby runtime, java.nio.channels.Channel channel)
public RubyIO(Ruby runtime, ShellLauncher.POpenProcess process, IOOptions ioOptions)
@Deprecated public RubyIO(Ruby runtime, RubyClass cls, ShellLauncher.POpenProcess process, RubyHash options, IOOptions ioOptions)
public static RubyIO prepStdio(Ruby runtime, java.io.InputStream f, java.nio.channels.Channel c, int fmode, RubyClass klass, java.lang.String path)
public static RubyIO prepStdio(Ruby runtime, java.io.OutputStream f, java.nio.channels.Channel c, int fmode, RubyClass klass, java.lang.String path)
public OpenFile getOpenFile()
public OpenFile getOpenFileChecked()
public OpenFile getOpenFileInitialized()
public ClassIndex getNativeClassIndex()
RubyObject
getNativeClassIndex
in interface CoreObjectType
getNativeClassIndex
in class RubyObject
ClassIndex
public java.io.OutputStream getOutStream()
public java.io.InputStream getInStream()
public java.nio.channels.Channel getChannel()
protected RubyIO reopenIO(ThreadContext context, RubyIO nfile)
public IRubyObject reopen(ThreadContext context, IRubyObject[] args)
public IRubyObject getline(ThreadContext context, IRubyObject separator)
public IRubyObject getline(ThreadContext context, IRubyObject separator, long limit)
public org.jcodings.Encoding getEnc()
getEnc
in interface IOEncodable
public org.jcodings.Encoding getReadEncoding()
public org.jcodings.Encoding getEnc2()
getEnc2
in interface IOEncodable
public org.jcodings.Encoding getInputEncoding()
public static IRubyObject newInstance(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
public static IRubyObject for_fd(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
public IRubyObject initialize(ThreadContext context, IRubyObject fileNumber, Block unused)
public IRubyObject initialize(ThreadContext context, IRubyObject fileNumber, IRubyObject second, Block unused)
public IRubyObject initialize(ThreadContext context, IRubyObject fileNumber, IRubyObject modeValue, IRubyObject options, Block unused)
protected IOOptions parseIOOptions(IRubyObject arg)
public IRubyObject external_encoding(ThreadContext context)
public IRubyObject internal_encoding(ThreadContext context)
public IRubyObject set_encoding(ThreadContext context, IRubyObject encodingObj)
public IRubyObject set_encoding(ThreadContext context, IRubyObject encodingString, IRubyObject internalEncoding)
public IRubyObject set_encoding(ThreadContext context, IRubyObject encodingString, IRubyObject internalEncoding, IRubyObject options)
public void setEncoding(ThreadContext context, IRubyObject v1, IRubyObject v2, IRubyObject opt)
public static IRubyObject open(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
public static IRubyObject ensureYieldClose(ThreadContext context, IRubyObject port, Block block)
@Deprecated public static IRubyObject sysopen(IRubyObject recv, IRubyObject[] args, Block block)
@Deprecated public static IRubyObject sysopen19(ThreadContext context, IRubyObject recv, IRubyObject[] argv, Block block)
public static IRubyObject sysopen(ThreadContext context, IRubyObject recv, IRubyObject[] argv, Block block)
protected static ChannelFD sysopen(Ruby runtime, java.lang.String fname, int oflags, int perm)
public static ChannelFD cloexecOpen(Ruby runtime, RubyIO.Sysopen data)
public boolean isAutoclose()
public void setAutoclose(boolean autoclose)
public IRubyObject autoclose(ThreadContext context)
public IRubyObject autoclose_set(ThreadContext context, IRubyObject autoclose)
public IRubyObject binmode()
public IRubyObject op_binmode(ThreadContext context)
public IRubyObject syswrite(ThreadContext context, IRubyObject str)
public IRubyObject write_nonblock(ThreadContext context, IRubyObject[] argv)
public RubyIO GetWriteIO()
public IRubyObject write(ThreadContext context, IRubyObject str)
context
- the current contextstr
- the string to writepublic IRubyObject write(ThreadContext context, IRubyObject[] args)
context
- the current contextargs
- the strings to writepublic final IRubyObject write(ThreadContext context, int ch)
context
- the current contextch
- the byte to write, as an intpublic final void write(ThreadContext context, byte ch)
context
- the current contextch
- the byte to write, as an intpublic IRubyObject write(ThreadContext context, IRubyObject str, boolean nosync)
context
- the current contextstr
- the string to writenosync
- whether to write without syncingpublic int write(ThreadContext context, byte[] bytes, int start, int length, org.jcodings.Encoding encoding)
context
- the current contextbytes
- the bytes to writestart
- start offset for writinglength
- length to writeencoding
- encoding of the bytes (will not be verified)public int write(ThreadContext context, byte[] bytes, int start, int length, org.jcodings.Encoding encoding, boolean nosync)
context
- the current contextbytes
- the bytes to writestart
- start offset for writinglength
- length to writeencoding
- encoding of the bytes (will not be verified)nosync
- whether to write without syncingpublic int write(byte[] bytes, int start, int length, org.jcodings.Encoding encoding, boolean nosync)
write(ThreadContext, byte[], int, int, Encoding, boolean)
but context will be retrieved.
Heavy use should retrieve context once and call the original method to avoid thread-local overhead.bytes
- the bytes to writestart
- start offset for writinglength
- length to writeencoding
- encoding of the bytes (will not be verified)nosync
- whether to write without syncingpublic int write(byte[] bytes, int start, int length, org.jcodings.Encoding encoding)
write(ThreadContext, byte[], int, int, Encoding, boolean)
but context will be retrieved and
nosync defaults to false.
Heavy use should retrieve context once and call the original method to avoid thread-local overhead.bytes
- the bytes to writestart
- start offset for writinglength
- length to writeencoding
- encoding of the bytes (will not be verified)public int write(byte[] bytes, org.jcodings.Encoding encoding)
write(ThreadContext, byte[], int, int, Encoding, boolean)
but context will be retrieved nosync
defaults to false, and the entire byte array will be written.
Heavy use should retrieve context once and call the original method to avoid thread-local overhead.bytes
- the bytes to writeencoding
- encoding of the bytes (will not be verified)public void write(int bite)
write(ThreadContext, byte)
but context will be retrieved.
Heavy use should retrieve context once and call the original method to avoid thread-local overhead.bite
- the byte to write, as an intpublic IRubyObject op_append(ThreadContext context, IRubyObject anObject)
public RubyFixnum fileno(ThreadContext context)
public RubyFixnum lineno(ThreadContext context)
public RubyFixnum lineno_set(ThreadContext context, IRubyObject newLineNumber)
newLineNumber
- The new line number.public RubyBoolean sync(ThreadContext context)
public IRubyObject pid(ThreadContext context)
Return the process id (pid) of the process this IO object spawned. If no process exists (popen was not called), then nil is returned. This is not how it appears to be defined but ruby 1.8 works this way.
public RubyFixnum pos(ThreadContext context)
public RubyFixnum pos_set(ThreadContext context, IRubyObject offset)
public IRubyObject print(ThreadContext context, IRubyObject[] args)
public static IRubyObject print(ThreadContext context, IRubyObject out, IRubyObject[] args)
public IRubyObject printf(ThreadContext context, IRubyObject[] args)
public IRubyObject putc(ThreadContext context, IRubyObject ch)
public static IRubyObject putc(ThreadContext context, IRubyObject maybeIO, IRubyObject object)
public RubyFixnum seek(ThreadContext context, IRubyObject[] args)
public RubyFixnum seek(ThreadContext context, IRubyObject off)
public RubyFixnum seek(ThreadContext context, IRubyObject off, IRubyObject whence)
public RubyFixnum sysseek(ThreadContext context, IRubyObject[] args)
public RubyFixnum rewind(ThreadContext context)
public RubyFixnum fsync(ThreadContext context)
public IRubyObject sync_set(IRubyObject sync)
sync
- The new sync mode.public void setSync(boolean sync)
public boolean getSync()
public RubyBoolean eof_p(ThreadContext context)
public RubyBoolean tty_p(ThreadContext context)
public IRubyObject initialize_copy(IRubyObject _io)
RubyBasicObject
initialize_copy
in class RubyBasicObject
public RubyBoolean closed_p(ThreadContext context)
public boolean isClosed()
public IRubyObject close(ThreadContext context)
Closes all open resources for the IO. It also removes it from our magical all open file descriptor pool.
public final void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
protected static IRubyObject ioClose(ThreadContext context, IRubyObject io)
protected IRubyObject rbIoClose(ThreadContext context)
public IRubyObject close_write(ThreadContext context)
public IRubyObject close_read(ThreadContext context)
public IRubyObject close_on_exec_set(ThreadContext context, IRubyObject arg)
public IRubyObject close_on_exec_p(ThreadContext context)
public RubyIO flush(ThreadContext context)
public void flush()
flush
in interface java.io.Flushable
protected RubyIO flushRaw(ThreadContext context, boolean sync)
public IRubyObject gets(ThreadContext context)
public IRubyObject gets(ThreadContext context, IRubyObject arg)
public IRubyObject gets(ThreadContext context, IRubyObject rs, IRubyObject limit_arg)
public IRubyObject gets(ThreadContext context, IRubyObject rs, IRubyObject limit_arg, IRubyObject opt)
public boolean getBlocking()
public void setBlocking(boolean blocking)
public IRubyObject fcntl(ThreadContext context, IRubyObject cmd)
public IRubyObject fcntl(ThreadContext context, IRubyObject cmd, IRubyObject arg)
public IRubyObject ioctl(ThreadContext context, IRubyObject[] args)
public IRubyObject puts(ThreadContext context)
public IRubyObject puts(ThreadContext context, IRubyObject arg0)
public IRubyObject puts(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
public IRubyObject puts(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
public IRubyObject puts(ThreadContext context, IRubyObject[] args)
public static IRubyObject puts0(ThreadContext context, IRubyObject maybeIO)
public static IRubyObject puts1(ThreadContext context, IRubyObject maybeIO, IRubyObject arg0)
public static IRubyObject puts2(ThreadContext context, IRubyObject maybeIO, IRubyObject arg0, IRubyObject arg1)
public static IRubyObject puts3(ThreadContext context, IRubyObject maybeIO, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
public static IRubyObject puts(ThreadContext context, IRubyObject maybeIO, IRubyObject... args)
protected static IRubyObject write(ThreadContext context, IRubyObject maybeIO, ByteList byteList)
protected static IRubyObject write(ThreadContext context, IRubyObject maybeIO, ByteList byteList, IRubyObject sep)
public static IRubyObject write(ThreadContext context, IRubyObject maybeIO, IRubyObject str)
public static IRubyObject write(ThreadContext context, IRubyObject maybeIO, IRubyObject arg0, IRubyObject arg1)
public IRubyObject inspect()
RubyBasicObject
to_s
method to
generate the string.
[ 1, 2, 3..4, 'five' ].inspect #=> "[1, 2, 3..4, \"five\"]"
Time.new.inspect #=> "Wed Apr 09 08:54:39 CDT 2003"inspect
in interface IRubyObject
inspect
in class RubyBasicObject
public IRubyObject readline(ThreadContext context)
public IRubyObject readline(ThreadContext context, IRubyObject separator)
@Deprecated public IRubyObject getc()
public IRubyObject readchar(ThreadContext context)
public IRubyObject getbyte(ThreadContext context)
public int getByte(ThreadContext context)
public IRubyObject readbyte(ThreadContext context)
public IRubyObject getc(ThreadContext context)
@Deprecated public final IRubyObject getc19(ThreadContext context)
public IRubyObject ungetbyte(ThreadContext context, IRubyObject b)
public IRubyObject ungetc(ThreadContext context, IRubyObject c)
public IRubyObject read_nonblock(ThreadContext context, IRubyObject[] args)
public IRubyObject doReadNonblock(ThreadContext context, IRubyObject[] args, boolean exception)
public IRubyObject readpartial(ThreadContext context, IRubyObject[] args)
public IRubyObject sysread(ThreadContext context, IRubyObject[] args)
public IRubyObject read(IRubyObject[] args)
public IRubyObject read(ThreadContext context)
context
- the current contextpublic IRubyObject read(ThreadContext context, IRubyObject length)
context
- the current contextlength
- a numeric value of the count of bytes to readpublic IRubyObject read(ThreadContext context, IRubyObject length, IRubyObject maybeStr)
context
- the current contextlength
- a numeric value of the count of bytes to readmaybeStr
- a RubyString buffer or a nil to indicate a new buffer should be createdprotected void checkLength(ThreadContext context, int len)
public int read(ThreadContext context, byte[] buffer, int start, int len)
context
- the current contextbuffer
- the target bufferstart
- start offset in target bufferlen
- count of bytes to readprotected static int doRead(ThreadContext context, OpenFile fptr, byte[] buffer, int start, int len)
@Deprecated public IRubyObject readchar()
public IRubyObject stat(ThreadContext context)
public IRubyObject each_byteInternal(ThreadContext context, Block block)
Invoke a block for each byte.
MRI: rb_io_each_bytepublic IRubyObject each_byte(ThreadContext context, Block block)
public IRubyObject bytes(ThreadContext context, Block block)
public IRubyObject each_charInternal(ThreadContext context, Block block)
public IRubyObject each_char(ThreadContext context, Block block)
public IRubyObject chars(ThreadContext context, Block block)
public IRubyObject codepoints(ThreadContext context, Block block)
public IRubyObject each_codepoint(ThreadContext context, Block block)
public IRubyObject each(ThreadContext context, Block block)
public IRubyObject each(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject each(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
public IRubyObject each(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
public IRubyObject each(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject each_line(ThreadContext context, Block block)
public IRubyObject each_line(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject each_line(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
public IRubyObject each_line(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
public IRubyObject each_line(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject lines(ThreadContext context, Block block)
public RubyArray readlines(ThreadContext context)
public RubyArray readlines(ThreadContext context, IRubyObject arg0)
public RubyArray readlines(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
public RubyArray readlines(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
public RubyArray readlines(ThreadContext context, IRubyObject[] args)
public RubyIO to_io()
public java.lang.String toString()
RubyObject
toString
in class RubyObject
public static IRubyObject foreach(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
public static RubyIO convertToIO(ThreadContext context, IRubyObject obj)
public static IRubyObject select(ThreadContext context, IRubyObject recv, IRubyObject[] argv)
public IRubyObject advise(ThreadContext context, IRubyObject[] argv)
public static void failIfDirectory(Ruby runtime, RubyString pathStr)
public static IRubyObject ioOpen(ThreadContext context, IRubyObject recv, IRubyObject filename, IRubyObject vmode, IRubyObject vperm, IRubyObject opt)
public static IRubyObject binread(ThreadContext context, IRubyObject recv, IRubyObject[] args)
context
- the current ThreadContextrecv
- the target of the call (IO or a subclass)args
- arguments; path [, length [, offset]]public static IRubyObject read(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block unusedBlock)
public static IRubyObject read(ThreadContext context, IRubyObject recv, IRubyObject[] args)
public static IRubyObject binwrite(ThreadContext context, IRubyObject recv, IRubyObject[] args)
public static IRubyObject write(ThreadContext context, IRubyObject recv, IRubyObject[] argv)
public static IRubyObject ioStaticWrite(ThreadContext context, IRubyObject recv, IRubyObject[] argv, boolean binary)
@Deprecated public static IRubyObject readlines19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block unusedBlock)
public static IRubyObject readlines(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block unusedBlock)
public static IRubyObject popen(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
@Deprecated public static IRubyObject pipe19(ThreadContext context, IRubyObject recv)
@Deprecated public static IRubyObject pipe19(ThreadContext context, IRubyObject recv, IRubyObject modes)
@Deprecated public static IRubyObject pipe19(ThreadContext context, IRubyObject klass, IRubyObject[] argv, Block block)
public static IRubyObject pipe(ThreadContext context, IRubyObject recv)
public static IRubyObject pipe(ThreadContext context, IRubyObject klass, IRubyObject[] argv, Block block)
public static IRubyObject ensureYieldClosePipes(ThreadContext context, IRubyObject obj, RubyIO r, RubyIO w, Block block)
public static IRubyObject copy_stream(ThreadContext context, IRubyObject recv, IRubyObject[] args)
public static IRubyObject tryConvert(ThreadContext context, IRubyObject recv, IRubyObject arg)
public IRubyObject pread(ThreadContext context, IRubyObject len, IRubyObject offset)
public IRubyObject pread(ThreadContext context, IRubyObject len, IRubyObject offset, IRubyObject str)
public IRubyObject pwrite(ThreadContext context, IRubyObject str, IRubyObject offset)
public void addBlockingThread(RubyThread thread)
thread
- A thread blocking on this IOpublic void removeBlockingThread(RubyThread thread)
thread
- A thread blocking on this IOprotected IOOptions updateIOOptionsFromOptions(ThreadContext context, RubyHash options, IOOptions ioOptions)
@Deprecated public static void checkExecOptions(IRubyObject options)
@Deprecated public static void checkSpawnOptions(IRubyObject options)
@Deprecated public static void checkPopenOptions(IRubyObject options)
public static void obliterateProcess(java.lang.Process process)
process
- The process to obliterate@Deprecated public IRubyObject readline(ThreadContext context, IRubyObject[] args)
public void setEnc2(org.jcodings.Encoding enc2)
setEnc2
in interface IOEncodable
public void setEnc(org.jcodings.Encoding enc)
setEnc
in interface IOEncodable
public void setEcflags(int ecflags)
setEcflags
in interface IOEncodable
public int getEcflags()
getEcflags
in interface IOEncodable
public void setEcopts(IRubyObject ecopts)
setEcopts
in interface IOEncodable
public IRubyObject getEcopts()
getEcopts
in interface IOEncodable
public void setBOM(boolean bom)
setBOM
in interface IOEncodable
public boolean getBOM()
getBOM
in interface IOEncodable
public <T> T toJava(java.lang.Class<T> target)
IRubyObject
toJava
in interface IRubyObject
toJava
in class RubyBasicObject
target
- The target type to which the object should be converted.IRubyObject.toJava(java.lang.Class<T>)
protected RubyIO setAscii8bitBinmode()
public final OpenFile MakeOpenFile()
@Deprecated public IRubyObject getline(Ruby runtime, ByteList separator)
@Deprecated public IRubyObject getline(Ruby runtime, ByteList separator, long limit)
@Deprecated public IRubyObject getline(ThreadContext context, ByteList separator)
@Deprecated public IRubyObject getline(ThreadContext context, ByteList separator, long limit)
@Deprecated public IRubyObject lines19(ThreadContext context, Block block)
@Deprecated public IRubyObject each_char19(ThreadContext context, Block block)
@Deprecated public IRubyObject chars19(ThreadContext context, Block block)
@Deprecated public RubyArray readlines19(ThreadContext context, IRubyObject[] args)
@Deprecated public static ModeFlags getIOModes(Ruby runtime, java.lang.String modesString)
@Deprecated public static int getIOModesIntFromString(Ruby runtime, java.lang.String modesString)
@Deprecated public static IRubyObject writeStatic(ThreadContext context, IRubyObject recv, IRubyObject[] argv, Block unusedBlock)
@Deprecated public static IRubyObject popen3(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
@Deprecated public static IRubyObject popen4(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
@Deprecated public static org.jruby.RubyIO.POpenTuple popenSpecial(ThreadContext context, IRubyObject[] args)
@Deprecated public IRubyObject doWriteNonblock(ThreadContext context, IRubyObject[] argv, boolean useException)
@Deprecated public static IRubyObject select_static(ThreadContext context, Ruby runtime, IRubyObject[] args)
@Deprecated public static RubyArray checkExecEnv(ThreadContext context, RubyHash hash)
@Deprecated public static IRubyObject ioOpen(ThreadContext context, IRubyObject filename, IRubyObject vmode, IRubyObject vperm, IRubyObject opt)
@Deprecated public static IRubyObject read19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block unusedBlock)
Copyright © 2001-2022 JRuby. All Rights Reserved.