Package | Description |
---|---|
org.jruby | |
org.jruby.util.io |
Modifier and Type | Method and Description |
---|---|
protected Stream |
RubyIO.fdopen(ChannelDescriptor existingDescriptor,
ModeFlags modes) |
static ModeFlags |
RubyIO.getIOModes(Ruby runtime,
java.lang.String modesString) |
protected void |
RubyFile.openInternal(java.lang.String path,
java.lang.String modeString) |
protected void |
RubyFile.openInternal(java.lang.String path,
java.lang.String modeString,
ModeFlags modes) |
protected void |
RubyFile.sysopenInternal(java.lang.String path,
ModeFlags modes,
int perm) |
Modifier and Type | Method and Description |
---|---|
void |
ChannelDescriptor.checkNewModes(ModeFlags newModes)
Check whether a specified set of mode flags is a superset of this
descriptor's original set of mode flags.
|
void |
OpenFile.checkReadable(Ruby runtime) |
void |
OpenFile.checkWritable(Ruby runtime) |
static Stream |
ChannelStream.fdopen(Ruby runtime,
ChannelDescriptor descriptor,
ModeFlags modes) |
static Stream |
ChannelStream.fdopen(Ruby runtime,
ChannelDescriptor descriptor,
ModeFlags modes,
boolean autoclose) |
long |
CRLFStreamWrapper.fgetpos() |
long |
ChannelStream.fgetpos() |
long |
Stream.fgetpos()
Get the current position within the file associated with this
handler.
|
static Stream |
ChannelStream.fopen(Ruby runtime,
java.lang.String path,
ModeFlags modes) |
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) |
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().
|
void |
OpenFile.seek(long offset,
int whence) |
Constructor and Description |
---|
ChannelDescriptor(java.nio.channels.Channel channel)
Construct a new ChannelDescriptor with the given channel, file number,
and file descriptor object.
|
ChannelDescriptor(java.nio.channels.Channel channel,
java.io.FileDescriptor fileDescriptor)
Construct a new ChannelDescriptor with the given channel, file number,
and file descriptor object.
|
ChannelDescriptor(java.nio.channels.Channel channel,
int fileno,
java.io.FileDescriptor fileDescriptor)
Deprecated.
|
ModeFlags(long flags)
Construct a new ModeFlags object with the specified flags
|
Copyright © 2002-2009 JRuby Team. All Rights Reserved.