| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| private static class | RubyIO.
Deprecated
|
| public static class | |
| private static class | |
| public static class | |
| public static class | RubyIO.
Represents a Ruby IO::TimeoutErrorError as a throwable Java exception. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Set | |
| public static final String | |
| public static final int | |
| private static final Getline. | |
| private static final Getline. | |
| private static final Getline. | |
| protected OpenFile | |
| public static final ByteList | |
| protected boolean | popenSpecial
If the stream is being used for popen, we don't want to destroy the process when we close the stream. |
| private static final ByteList | |
| pack-priv static final String[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | RubyIO(Ruby runtime, RubyClass cls, ShellLauncher.
Deprecated
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addBlockingThread(RubyThread
A thread blocking on this IO thread)Add a thread to the list of blocking threads for this IO. |
| pack-priv static PosixFadvise | |
| public IRubyObject | |
| private static boolean | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | Returns: the binary contents of the given file, at specified length and offsetthe current ThreadContext context, IRubyObject the target of the call (IO or a subclass) recv, IRubyObject[] arguments; path [, length [, offset]] args)binread is just like read, except it doesn't take options and it forces mode to be "rb:ASCII-8BIT" |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static RubyArray | |
| public static void | |
| private void | |
| protected void | |
| public static void | |
| private void | |
| public static void | |
| pack-priv static void | |
| pack-priv static void | |
| private static void | |
| public static ChannelFD | |
| public IRubyObject | Returns: The IO. Returns nil if the IO was already closed. MRI: rb_io_close_mCloses all open resources for the IO. |
| public final void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyBoolean | |
| public IRubyObject | |
| public static RubyIO | |
| public static IRubyObject | |
| public static IRubyObject | copy_stream(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
|
| public static IRubyObject | |
| private static RubyFixnum | copyStreamCommon(ThreadContext context, IRubyObject arg1, IRubyObject arg2, RubyInteger length, RubyInteger offset)
|
| public static RubyClass | |
| private IRubyObject | |
| protected static int | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | doReadNonblock(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, boolean exception)
|
| public IRubyObject | |
| private long | |
| private IRubyObject | |
| private static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | each(final ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, final Block block)
|
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | each_line(final ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, final Block block)
|
| public IRubyObject | |
| private IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public RubyBoolean | |
| public IRubyObject | |
| public static void | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyFixnum | |
| public RubyIO | |
| public void | flush()
Implements java. Flushes this stream by writing any buffered output to the underlying stream. |
| protected RubyIO | |
| public static IRubyObject | |
| public static IRubyObject | |
| private static IRubyObject | foreachInternal(ThreadContext context, IRubyObject recv, IRubyObject[] args, boolean keywords, Block block)
|
| public RubyFixnum | |
| public boolean | |
| public boolean | |
| public IRubyObject | |
| public int | |
| public IRubyObject | |
| public IRubyObject | |
| public Channel | Returns: the underlying channel for this IOGet the underlying channel from this IO object. |
| public int | |
| public IRubyObject | |
| public Encoding | |
| public Encoding | |
| public Encoding | |
| public InputStream | |
| public static ModeFlags | |
| public static int | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| pack-priv IRubyObject | getlineImpl(ThreadContext context, IRubyObject rs, final int limit, final boolean chomp)
getline using logic of gets. |
| private IRubyObject | getlineImplSlowPart(ThreadContext context, final OpenFile fptr, RubyString str, IRubyObject rs, final int limit, final boolean chomp)
|
| public ClassIndex | getNativeClassIndex()
Overrides org. Implements org. This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
| public OpenFile | |
| public OpenFile | |
| public OpenFile | |
| public OutputStream | |
| pack-priv IRubyObject | |
| pack-priv IRubyObject | |
| pack-priv IRubyObject | getPartial(ThreadContext context, IRubyObject arg0, IRubyObject arg1, boolean nonblock, boolean noException)
|
| pack-priv IRubyObject | getPartial(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, boolean nonblock, boolean noException)
|
| pack-priv IRubyObject | |
| private IRubyObject | getPartialCommon(ThreadContext context, Ruby runtime, IRubyObject length, IRubyObject str, boolean nonblock, boolean noException)
|
| public String | |
| public Encoding | |
| private Encoding | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| public RubyIO | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | initialize(ThreadContext context, IRubyObject fileNumber, IRubyObject modeValue, IRubyObject options, Block unused)
|
| public IRubyObject | initialize_copy(ThreadContext
the thread context context, IRubyObject the original _io)Overrides org. Initializes this object as a copy of the original, that is the parameter to this object. |
| private IRubyObject | |
| private IRubyObject | |
| public IRubyObject | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| private static IRubyObject | |
| public IRubyObject | |
| private static int | |
| protected static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | ioOpen(ThreadContext context, IRubyObject recv, IRubyObject filename, IRubyObject vmode, IRubyObject vperm, IRubyObject opt)
|
| pack-priv static RubyIO | ioOpen(ThreadContext context, IRubyObject recv, RubyString filename, IRubyObject vmode, IRubyObject vperm, IRubyObject opt)
|
| public static IRubyObject | ioOpen(ThreadContext context, IRubyObject filename, IRubyObject vmode, IRubyObject vperm, IRubyObject opt)
Deprecated
|
| private static RubyIO | ioOpenGeneric(ThreadContext context, IRubyObject recv, IRubyObject filename, int oflags, int fmode, IOEncodable convconfig, int perm)
|
| public static IRubyObject | |
| private IRubyObject | |
| public boolean | |
| public boolean | |
| private static boolean | |
| private static boolean | |
| public RubyFixnum | |
| public RubyFixnum | lineno_set(ThreadContext context, IRubyObject
The new line number. newLineNumber)Sets the current line number. |
| public IRubyObject | |
| public final OpenFile | |
| public static IRubyObject | |
| public static RubyIO | |
| public static IOOptions | |
| public static IOOptions | |
| public static IOOptions | |
| public static IOOptions | |
| public static IOOptions | |
| public static ModeFlags | |
| public static ModeFlags | |
| public static ModeFlags | |
| pack-priv static IRubyObject | |
| public static void | obliterateProcess(Process
The process to obliterate process)Try for around 1s to destroy the child process. |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| private static RubyIO | |
| protected IOOptions | |
| public IRubyObject | |
| public IRubyObject | Returns: the pid or nilReturn the process id (pid) of the process this IO object spawned. |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | pipe(ThreadContext context, IRubyObject klass, IRubyObject v1, IRubyObject v2, IRubyObject opt, Block block)
|
| public static IRubyObject | |
| private static void | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static RubyIO. | |
| public RubyFixnum | |
| public RubyFixnum | |
| public IRubyObject | |
| public IRubyObject | |
| private static long | |
| private static RubyIO | |
| public static RubyIO | |
| public static RubyIO | |
| private static void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | print3(ThreadContext context, IRubyObject out, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
|
| public IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | puts3(ThreadContext context, IRubyObject maybeIO, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
|
| private static IRubyObject | |
| private static void | putsSingle(ThreadContext context, Ruby runtime, IRubyObject maybeIO, IRubyObject arg, RubyString separator)
|
| public IRubyObject | |
| private static int | |
| protected IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | Returns: the output buffer viewing the actual range of bytes readthe current context context)Read all available bytes. |
| public IRubyObject | Returns: the output buffer viewing the actual range of bytes readthe current context context, IRubyObject a numeric value of the count of bytes to read length)Read length bytes. |
| public IRubyObject | Returns: the output buffer viewing the actual range of bytes readthe current context context, IRubyObject a numeric value of the count of bytes to read length, IRubyObject a RubyString buffer or a nil to indicate a new buffer should be created maybeStr)Read into the given buffer (or create a new one) reading length bytes. |
| public int | Returns: the number of bytes actually read or -1 for EOFthe current context context, byte[] the target buffer buffer, int start offset in target buffer start, int count of bytes to read len)Read into the given buffer starting from start and reading len bytes. |
| public static IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private static RubyIO | |
| public void | removeBlockingThread(RubyThread
A thread blocking on this IO thread)Remove a thread from the list of blocking threads for this IO. |
| public IRubyObject | |
| protected RubyIO | |
| public RubyFixnum | |
| private static void | |
| public RubyFixnum | |
| public RubyFixnum | |
| public RubyFixnum | |
| pack-priv static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | set_encoding(ThreadContext context, IRubyObject encodingString, IRubyObject internalEncoding, IRubyObject options)
|
| public IRubyObject | |
| protected RubyIO | |
| public void | |
| private void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected void | |
| public void | |
| private void | |
| private static JavaSites. | sites(ThreadContext context)
Hides org. Retrieve the call sites for this class. |
| public IRubyObject | |
| public RubyBoolean | |
| public IRubyObject | sync_set(IRubyObject sync)
Deprecated
since 10.0. Use
RubyIO#sync_set(ThreadContext, IRubyObject) instead.
|
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| protected static ChannelFD | |
| private static ChannelFD | |
| private static ChannelFD | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private RubyString | |
| public RubyFixnum | |
| public IRubyObject | |
| public RubyIO | |
| public <T> T | toJava(Class<T>
The target type to which the object should be converted. target)Overrides org. Implements org. Convert the object to the specified Java class, if possible. |
| public String | toString()
Overrides org. The default toString method is just a wrapper that calls the Ruby "to_s" method. |
| private static long | transfer(ThreadContext context, ReadableByteChannel from, FileChannel to, long length, long position)
|
| private static long | |
| private static long | transfer(ThreadContext context, ReadableByteChannel from, WritableByteChannel to, long length, long position)
|
| public static IRubyObject | |
| public RubyBoolean | |
| public IRubyObject | |
| public IRubyObject | |
| 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 |
| public IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | wait_writable(ThreadContext context, IRubyObject[] argv)
waits until input available or timed out and returns self, or nil when EOF reached. |
| public static IRubyObject | wait_writable(ThreadContext context, IRubyObject _io, IRubyObject[] argv)
waits until input available or timed out and returns self, or nil when EOF reached. |
| private static void | |
| public IRubyObject | write(ThreadContext
the current context context, IRubyObject the string to write str)Ruby method IO#write(str), equivalent to io_write_m. |
| public IRubyObject | write(ThreadContext
the current context context, IRubyObject[] the strings to write args)Ruby method IO#write(str, ...), equivalent to io_write_m. |
| public final IRubyObject | Returns: the count of bytes writtenthe current context context, int the byte to write, as an int ch)Write a single byte to this IO's write target. |
| public final void | write(ThreadContext
the current context context, byte the byte to write, as an int ch)Write a single byte to this IO's write target but do not return the number of bytes written (it will be 1). |
| public IRubyObject | Returns: the count of bytes writtenthe current context context, IRubyObject the string to write str, boolean whether to write without syncing nosync)Write the given range of bytes to this IO's write target. |
| public int | Returns: the count of bytes writtenthe current context context, byte[] the bytes to write bytes, int start offset for writing start, int length to write length, Encoding encoding of the bytes (will not be verified) encoding)Write the given range of bytes to this IO. |
| public int | Returns: the count of bytes writtenthe current context context, byte[] the bytes to write bytes, int start offset for writing start, int length to write length, Encoding encoding of the bytes (will not be verified) encoding, boolean whether to write without syncing nosync)Write the given range of bytes to this IO. |
| public int | Returns: the count of bytes writtenthe bytes to write bytes, int start offset for writing start, int length to write length, Encoding encoding of the bytes (will not be verified) encoding, boolean whether to write without syncing nosync)Same as |
| public int | Returns: the count of bytes writtenthe bytes to write bytes, int start offset for writing start, int length to write length, Encoding encoding of the bytes (will not be verified) encoding)Same as |
| public int | Returns: the count of bytes writtenthe bytes to write bytes, Encoding encoding of the bytes (will not be verified) encoding)Same as |
| public void | write(int
the byte to write, as an int bite)Same as |
| protected static IRubyObject | |
| protected static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | write2(ThreadContext
the current context context, IRubyObject the first string to write arg0, IRubyObject the second string to write arg1)Ruby method IO#write(str, ...), equivalent to io_write_m. |
| public IRubyObject | write3(ThreadContext
the current context context, IRubyObject the first string to write arg0, IRubyObject the second string to write arg1, IRubyObject the third string to write arg2)Ruby method IO#write(str, ...), equivalent to io_write_m. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private static void | |
| private static IRubyObject | |
| public static IRubyObject | writeStatic(ThreadContext context, IRubyObject recv, IRubyObject[] argv, Block unusedBlock)
Deprecated
|
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject |