Package | Description |
---|---|
org.jruby | |
org.jruby.util | |
org.jruby.util.io |
Modifier and Type | Method and Description |
---|---|
static ModeFlags |
RubyIO.getIOModes(Ruby runtime,
java.lang.String modesString) |
protected ModeFlags |
RubyIO.parseModes(IRubyObject arg) |
protected ModeFlags |
RubyIO.parseModes19(ThreadContext context,
IRubyObject arg) |
protected ModeFlags |
RubyIO.parseOptions(ThreadContext context,
IRubyObject options,
ModeFlags modes)
==== Options
opt can have the following keys
:mode ::
same as mode parameter
:external_encoding ::
external encoding for the IO. |
Modifier and Type | Method and Description |
---|---|
protected Stream |
RubyIO.fdopen(ChannelDescriptor existingDescriptor,
ModeFlags modes) |
protected void |
RubyFile.openInternal(java.lang.String path,
java.lang.String modeString,
ModeFlags modes) |
protected ModeFlags |
RubyIO.parseOptions(ThreadContext context,
IRubyObject options,
ModeFlags modes)
==== Options
opt can have the following keys
:mode ::
same as mode parameter
:external_encoding ::
external encoding for the IO. |
protected void |
RubyFile.sysopenInternal(java.lang.String path,
ModeFlags modes,
int perm) |
Constructor and Description |
---|
RubyIO(Ruby runtime,
ShellLauncher.POpenProcess process,
ModeFlags modes) |
Modifier and Type | Method and Description |
---|---|
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject[] strings,
java.util.Map env,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject string,
ModeFlags modes) |
Constructor and Description |
---|
ShellLauncher.POpenProcess(java.lang.Process child,
Ruby runtime,
ModeFlags modes) |
Modifier and Type | Field and Description |
---|---|
protected ModeFlags |
ChannelStream.modes |
Modifier and Type | Method and Description |
---|---|
ModeFlags |
CRLFStreamWrapper.getModes() |
ModeFlags |
ChannelStream.getModes() |
ModeFlags |
Stream.getModes() |
ModeFlags |
ChannelDescriptor.getOriginalModes()
Get the original mode flags for the descriptor.
|
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 |
ChannelStream.checkPermissionsSubsetOf(ModeFlags subsetModes) |
static Stream |
ChannelStream.fdopen(Ruby runtime,
ChannelDescriptor descriptor,
ModeFlags modes) |
static Stream |
ChannelStream.fdopen(Ruby runtime,
ChannelDescriptor descriptor,
ModeFlags modes,
boolean autoclose) |
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) |
boolean |
ModeFlags.isSubsetOf(ModeFlags superset)
Check whether the target set of flags is a superset of this one; used to
ensure that a file is not re-opened with more privileges than it already
had.
|
static ChannelDescriptor |
ChannelDescriptor.open(java.lang.String cwd,
java.lang.String path,
ModeFlags flags)
Open a new descriptor using the given working directory, file path,
mode flags, and file permission.
|
static ChannelDescriptor |
ChannelDescriptor.open(java.lang.String cwd,
java.lang.String path,
ModeFlags flags,
java.lang.ClassLoader classLoader)
Open a new descriptor using the given working directory, file path,
mode flags, and file permission.
|
static ChannelDescriptor |
ChannelDescriptor.open(java.lang.String cwd,
java.lang.String path,
ModeFlags flags,
int perm,
org.jruby.ext.posix.POSIX posix)
Open a new descriptor using the given working directory, file path,
mode flags, and file permission.
|
static ChannelDescriptor |
ChannelDescriptor.open(java.lang.String cwd,
java.lang.String path,
ModeFlags flags,
int perm,
org.jruby.ext.posix.POSIX posix,
java.lang.ClassLoader classLoader)
Open a new descriptor using the given working directory, file path,
mode flags, and file permission.
|
ChannelDescriptor |
ChannelDescriptor.reopen(java.nio.channels.Channel channel,
ModeFlags modes) |
ChannelDescriptor |
ChannelDescriptor.reopen(java.io.RandomAccessFile file,
ModeFlags modes) |
Constructor and Description |
---|
ChannelDescriptor(java.nio.channels.Channel channel,
ModeFlags originalModes)
Construct a new ChannelDescriptor with the given channel, file number, mode flags,
and file descriptor object.
|
ChannelDescriptor(java.nio.channels.Channel channel,
ModeFlags originalModes,
java.io.FileDescriptor fileDescriptor)
Construct a new ChannelDescriptor with the given channel, file number, mode flags,
and file descriptor object.
|
ChannelDescriptor(java.io.InputStream baseInputStream,
ModeFlags originalModes)
Special constructor to create the ChannelDescriptor out of the stream, file number,
mode flags, and file descriptor object.
|
ChannelDescriptor(java.io.InputStream baseInputStream,
ModeFlags originalModes,
java.io.FileDescriptor fileDescriptor)
Special constructor to create the ChannelDescriptor out of the stream, file number,
mode flags, and file descriptor object.
|
Copyright © 2002-2009 JRuby Team. All Rights Reserved.