Package | Description |
---|---|
org.jruby.ext.socket | |
org.jruby.util.io |
Modifier and Type | Method and Description |
---|---|
protected InetSocketAddress |
RubyBasicSocket.getRemoteSocket() |
protected InetSocketAddress |
RubyBasicSocket.getSocketAddress() |
Modifier and Type | Method and Description |
---|---|
void |
ChannelDescriptor.checkOpen()
Deprecated.
Check whether the isOpen returns true, raising a BadDescriptorException if
it returns false.
|
void |
ChannelDescriptor.close()
Deprecated.
Close this descriptor.
|
void |
ChannelDescriptor.dup2Into(ChannelDescriptor other)
Deprecated.
Mimics the POSIX dup2(2) function, returning a new descriptor that references
the same open channel but with a specified fileno.
|
void |
Stream.fclose() |
void |
CRLFStreamWrapper.fclose() |
void |
ChannelStream.fclose()
Deprecated.
Closes IO handler resources.
|
boolean |
Stream.feof()
Return true when at end of file (EOF).
|
boolean |
CRLFStreamWrapper.feof() |
boolean |
ChannelStream.feof()
Deprecated.
|
int |
Stream.fflush() |
int |
CRLFStreamWrapper.fflush() |
int |
ChannelStream.fflush()
Deprecated.
|
int |
Stream.fgetc() |
int |
CRLFStreamWrapper.fgetc() |
int |
ChannelStream.fgetc()
Deprecated.
|
long |
Stream.fgetpos()
Get the current position within the file associated with this
handler.
|
long |
CRLFStreamWrapper.fgetpos() |
long |
ChannelStream.fgetpos()
Deprecated.
|
org.jruby.util.ByteList |
Stream.fgets(org.jruby.util.ByteList separatorString) |
org.jruby.util.ByteList |
CRLFStreamWrapper.fgets(org.jruby.util.ByteList separatorString) |
org.jruby.util.ByteList |
ChannelStream.fgets(org.jruby.util.ByteList separatorString)
Deprecated.
|
static Stream |
ChannelStream.fopen(Ruby runtime,
String path,
ModeFlags modes)
Deprecated.
|
void |
Stream.fputc(int c) |
void |
CRLFStreamWrapper.fputc(int c) |
void |
ChannelStream.fputc(int c)
Deprecated.
|
org.jruby.util.ByteList |
Stream.fread(int number) |
org.jruby.util.ByteList |
CRLFStreamWrapper.fread(int number) |
org.jruby.util.ByteList |
ChannelStream.fread(int number)
Deprecated.
|
void |
Stream.freopen(Ruby runtime,
String path,
ModeFlags modes) |
void |
CRLFStreamWrapper.freopen(Ruby runtime,
String path,
ModeFlags modes) |
void |
ChannelStream.freopen(Ruby runtime,
String path,
ModeFlags modes)
Deprecated.
|
void |
Stream.ftruncate(long newLength) |
void |
CRLFStreamWrapper.ftruncate(long newLength) |
void |
ChannelStream.ftruncate(long newLength)
Deprecated.
|
int |
Stream.fwrite(org.jruby.util.ByteList string) |
int |
CRLFStreamWrapper.fwrite(org.jruby.util.ByteList string) |
int |
ChannelStream.fwrite(org.jruby.util.ByteList string)
Deprecated.
|
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) |
int |
ChannelStream.getline(org.jruby.util.ByteList dst,
byte terminator)
Deprecated.
|
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.
|
int |
CRLFStreamWrapper.getline(org.jruby.util.ByteList dst,
byte terminator,
long limit) |
int |
ChannelStream.getline(org.jruby.util.ByteList dst,
byte terminator,
long limit)
Deprecated.
|
int |
ChannelDescriptor.internalWrite(ByteBuffer buffer)
Deprecated.
Write the bytes in the specified byte list to the associated channel.
|
void |
Stream.lseek(long offset,
int type)
Perform a seek based on pos().
|
void |
CRLFStreamWrapper.lseek(long offset,
int type) |
void |
ChannelStream.lseek(long offset,
int type)
Deprecated.
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).
|
long |
ChannelDescriptor.lseek(long offset,
int whence)
Deprecated.
Perform a low-level seek operation on the associated channel if it is
instanceof FileChannel, or raise PipeException if it is not a FileChannel.
|
int |
ChannelStream.read()
Deprecated.
|
int |
ChannelStream.read(ByteBuffer dst)
Deprecated.
|
int |
ChannelDescriptor.read(ByteBuffer buffer)
Deprecated.
Perform a low-level read of the remaining number of bytes into the specified
byte buffer.
|
int |
ChannelStream.read(ByteBuffer dst,
boolean partial)
Deprecated.
|
org.jruby.util.ByteList |
Stream.read(int number) |
org.jruby.util.ByteList |
CRLFStreamWrapper.read(int number) |
org.jruby.util.ByteList |
ChannelStream.read(int number)
Deprecated.
|
int |
ChannelDescriptor.read(int number,
org.jruby.util.ByteList byteList)
Deprecated.
Perform a low-level read of the specified number of bytes into the specified
byte list.
|
org.jruby.util.ByteList |
Stream.readall() |
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 |
ChannelStream.readnonblock(int number)
Deprecated.
|
org.jruby.util.ByteList |
ChannelStream.readpartial(int number)
Deprecated.
|
void |
Stream.sync()
Flush and sync all writes to the filesystem.
|
void |
CRLFStreamWrapper.sync() |
void |
ChannelStream.sync()
Deprecated.
|
int |
ChannelStream.write(ByteBuffer buf)
Deprecated.
|
int |
ChannelDescriptor.write(ByteBuffer buffer)
Deprecated.
Write the bytes in the specified byte list to the associated channel.
|
int |
ChannelDescriptor.write(org.jruby.util.ByteList buf)
Deprecated.
Write the bytes in the specified byte list to the associated channel.
|
int |
ChannelDescriptor.write(org.jruby.util.ByteList buf,
int offset,
int len)
Deprecated.
Write the bytes in the specified byte list to the associated channel.
|
int |
ChannelDescriptor.write(int c)
Deprecated.
Write the byte represented by the specified int to the associated channel.
|
int |
ChannelStream.writenonblock(org.jruby.util.ByteList buf)
Deprecated.
|
Copyright © 2001-2015 JRuby. All Rights Reserved.