| Package | Description |
|---|---|
| org.jruby | |
| org.jruby.embed.jsr223 | |
| org.jruby.ext.socket | |
| org.jruby.util.io |
| Modifier and Type | Method and Description |
|---|---|
private org.jruby.util.ByteList |
RubyIO.blockingFRead(Stream stream,
RubyThread thread,
int length) |
protected static boolean |
RubyIO.emptyBufferOrEOF(org.jruby.util.ByteList buffer,
OpenFile myOpenFile) |
private org.jruby.util.ByteList |
RubyIO.fread(RubyThread thread,
int length) |
private IRubyObject |
RubyIO.getcDirect(ThreadContext context,
Stream stream,
org.jcodings.Encoding enc) |
private IRubyObject |
RubyIO.getcTranscoded(ThreadContext context,
Stream stream) |
Stream |
RubyIO.getHandler()
Deprecated.
|
private IRubyObject |
RubyIO.getlineAll(ThreadContext context,
OpenFile myOpenFile) |
private IRubyObject |
RubyIO.getlineFast(Ruby runtime,
int delim,
RubyIO.ByteListCache cache) |
private IRubyObject |
RubyIO.ioGetc(ThreadContext context,
Stream stream) |
protected RubyString |
RubyIO.readAll(RubyString str) |
protected IRubyObject |
RubyIO.readAll(ThreadContext context) |
protected org.jruby.util.ByteList |
RubyIO.readAllCommon(Ruby runtime) |
protected boolean |
RubyIO.swallow(int term) |
| Modifier and Type | Method and Description |
|---|---|
private static RubyIO |
Utils.getRubyIO(Ruby runtime,
java.io.Writer writer) |
private static void |
Utils.setErrorWriter(ScriptingContainer container,
java.io.Writer writer) |
private static void |
Utils.setWriter(ScriptingContainer container,
java.io.Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
private java.nio.channels.Channel |
RubyBasicSocket.getOpenChannel() |
protected java.net.InetSocketAddress |
RubyBasicSocket.getRemoteSocket() |
protected java.net.InetSocketAddress |
RubyBasicSocket.getSocketAddress() |
private void |
RubyBasicSocket.joinMulticastGroup(IRubyObject val) |
private IRubyObject |
RubyBasicSocket.shutdownInternal(ThreadContext context,
int how) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
OpenFile.areBothEOF() |
private int |
ChannelStream.bufferedRead() |
private int |
ChannelStream.bufferedRead(java.nio.ByteBuffer dst,
boolean partial) |
private int |
ChannelStream.bufferedRead(org.jruby.util.ByteList dst,
int number) |
private org.jruby.util.ByteList |
ChannelStream.bufferedRead(int number) |
private int |
ChannelStream.bufferedWrite(java.nio.ByteBuffer buf) |
private int |
ChannelStream.bufferedWrite(org.jruby.util.ByteList buf) |
private int |
ChannelStream.bufferedWrite(int c) |
void |
ChannelDescriptor.checkOpen()
Check whether the isOpen returns true, raising a BadDescriptorException if
it returns false.
|
void |
OpenFile.checkReadable(Ruby runtime) |
void |
OpenFile.checkWritable(Ruby runtime) |
void |
ChannelDescriptor.close()
Close this descriptor.
|
private void |
ChannelStream.close()
Internal close.
|
void |
ChannelDescriptor.dup2Into(ChannelDescriptor other)
Mimics the POSIX dup2(2) function, returning a new descriptor that references
the same open channel but with a specified fileno.
|
private void |
ChannelStream.ensureRead()
Ensure buffer is ready for reading, flushing remaining writes if required
|
private void |
ChannelStream.ensureReadNonBuffered()
Ensure buffer is ready for reading, flushing remaining writes if required
|
void |
CRLFStreamWrapper.fclose() |
void |
ChannelStream.fclose()
Closes IO handler resources.
|
void |
Stream.fclose() |
boolean |
CRLFStreamWrapper.feof() |
boolean |
ChannelStream.feof() |
boolean |
Stream.feof()
Return true when at end of file (EOF).
|
int |
CRLFStreamWrapper.fflush() |
int |
ChannelStream.fflush() |
int |
Stream.fflush() |
void |
OpenFile.fflush(Stream stream) |
int |
CRLFStreamWrapper.fgetc() |
int |
ChannelStream.fgetc() |
int |
Stream.fgetc() |
long |
CRLFStreamWrapper.fgetpos() |
long |
ChannelStream.fgetpos() |
long |
Stream.fgetpos()
Get the current position within the file associated with this
handler.
|
org.jruby.util.ByteList |
CRLFStreamWrapper.fgets(org.jruby.util.ByteList separatorString) |
org.jruby.util.ByteList |
ChannelStream.fgets(org.jruby.util.ByteList separatorString) |
org.jruby.util.ByteList |
Stream.fgets(org.jruby.util.ByteList separatorString) |
(package private) void |
ChannelDescriptor.finish(boolean close) |
private void |
ChannelStream.finish(boolean close) |
private void |
OpenFile.flushBeforeSeek(Stream stream) |
private void |
ChannelStream.flushWrite()
Flush the write buffer to the channel (if needed)
|
private boolean |
ChannelStream.flushWrite(boolean block)
Flush the write buffer to the channel (if needed)
|
static Stream |
ChannelStream.fopen(Ruby runtime,
java.lang.String path,
ModeFlags modes) |
void |
CRLFStreamWrapper.fputc(int c) |
void |
ChannelStream.fputc(int c) |
void |
Stream.fputc(int c) |
org.jruby.util.ByteList |
CRLFStreamWrapper.fread(int number) |
org.jruby.util.ByteList |
ChannelStream.fread(int number) |
org.jruby.util.ByteList |
Stream.fread(int number) |
void |
CRLFStreamWrapper.freopen(Ruby runtime,
java.lang.String path,
ModeFlags modes) |
void |
ChannelStream.freopen(Ruby runtime,
java.lang.String path,
ModeFlags modes) |
void |
Stream.freopen(Ruby runtime,
java.lang.String path,
ModeFlags modes) |
void |
CRLFStreamWrapper.ftruncate(long newLength) |
void |
ChannelStream.ftruncate(long newLength) |
void |
Stream.ftruncate(long newLength) |
int |
CRLFStreamWrapper.fwrite(org.jruby.util.ByteList string) |
int |
ChannelStream.fwrite(org.jruby.util.ByteList string) |
int |
Stream.fwrite(org.jruby.util.ByteList string) |
int |
CRLFStreamWrapper.getline(org.jruby.util.ByteList dst,
byte terminator) |
int |
ChannelStream.getline(org.jruby.util.ByteList dst,
byte terminator) |
int |
Stream.getline(org.jruby.util.ByteList dst,
byte terminator)
Read all bytes up to and including a terminator byte.
|
int |
CRLFStreamWrapper.getline(org.jruby.util.ByteList dst,
byte terminator,
long limit) |
int |
ChannelStream.getline(org.jruby.util.ByteList dst,
byte terminator,
long limit) |
int |
Stream.getline(org.jruby.util.ByteList dst,
byte terminator,
long limit)
Reads all bytes up to and including a terminator byte or until limit is reached.
|
Stream |
OpenFile.getMainStreamSafe() |
Stream |
OpenFile.getPipeStreamSafe() |
Stream |
OpenFile.getWriteStreamSafe() |
int |
ChannelDescriptor.internalWrite(java.nio.ByteBuffer buffer)
Write the bytes in the specified byte list to the associated channel.
|
private void |
ChannelStream.invalidateBuffer()
Invalidate buffer before a position change has occurred (e.g.
|
void |
CRLFStreamWrapper.lseek(long offset,
int type) |
long |
ChannelDescriptor.lseek(long offset,
int whence)
Perform a low-level seek operation on the associated channel if it is
instanceof FileChannel, or raise PipeException if it is not a FileChannel.
|
void |
ChannelStream.lseek(long offset,
int type)
Implementation of libc "lseek", which seeks on seekable streams, raises
EPIPE if the fd is assocated with a pipe, socket, or FIFO, and doesn't
do anything for other cases (like stdio).
|
void |
Stream.lseek(long offset,
int type)
Perform a seek based on pos().
|
private void |
SelectBlob.processReads(Ruby runtime,
IRubyObject[] args,
ThreadContext context) |
int |
ChannelStream.read() |
int |
ChannelDescriptor.read(java.nio.ByteBuffer buffer)
Perform a low-level read of the remaining number of bytes into the specified
byte buffer.
|
int |
ChannelStream.read(java.nio.ByteBuffer dst) |
int |
ChannelStream.read(java.nio.ByteBuffer dst,
boolean partial) |
org.jruby.util.ByteList |
CRLFStreamWrapper.read(int number) |
org.jruby.util.ByteList |
ChannelStream.read(int number) |
org.jruby.util.ByteList |
Stream.read(int number) |
int |
ChannelDescriptor.read(int number,
org.jruby.util.ByteList byteList)
Perform a low-level read of the specified number of bytes into the specified
byte list.
|
org.jruby.util.ByteList |
CRLFStreamWrapper.readall() |
org.jruby.util.ByteList |
ChannelStream.readall()
Deprecated.
readall do busy loop for the IO which has NONBLOCK bit. You
should implement the logic by yourself with fread().
|
org.jruby.util.ByteList |
Stream.readall() |
org.jruby.util.ByteList |
ChannelStream.readnonblock(int number) |
org.jruby.util.ByteList |
ChannelStream.readpartial(int number) |
private void |
SelectBlob.saveBufferedRead(RubyIO ioObj,
int i) |
void |
OpenFile.seek(long offset,
int whence) |
private void |
OpenFile.seekInternal(Stream stream,
long offset,
int whence) |
void |
CRLFStreamWrapper.sync() |
void |
ChannelStream.sync() |
void |
Stream.sync()
Flush and sync all writes to the filesystem.
|
int |
ChannelDescriptor.write(java.nio.ByteBuffer buffer)
Write the bytes in the specified byte list to the associated channel.
|
int |
ChannelStream.write(java.nio.ByteBuffer buf) |
int |
ChannelDescriptor.write(org.jruby.util.ByteList buf)
Write the bytes in the specified byte list to the associated channel.
|
int |
ChannelDescriptor.write(org.jruby.util.ByteList buf,
int offset,
int len)
Write the bytes in the specified byte list to the associated channel.
|
int |
ChannelDescriptor.write(int c)
Write the byte represented by the specified int to the associated channel.
|
int |
ChannelStream.writenonblock(org.jruby.util.ByteList buf) |