Package | Description |
---|---|
org.jruby | |
org.jruby.util | |
org.jruby.util.io |
Modifier and Type | Method and Description |
---|---|
static ModeFlags |
RubyIO.getIOModes(Ruby runtime,
String modesString)
Deprecated.
|
static ModeFlags |
RubyIO.newModeFlags(Ruby runtime,
int mode) |
static ModeFlags |
RubyIO.newModeFlags(Ruby runtime,
long mode) |
static ModeFlags |
RubyIO.newModeFlags(Ruby runtime,
String mode) |
Modifier and Type | Method and Description |
---|---|
protected Stream |
RubyIO.fdopen(ChannelDescriptor existingDescriptor,
ModeFlags modes) |
static IOOptions |
RubyIO.newIOOptions(Ruby runtime,
ModeFlags modeFlags) |
protected void |
RubyFile.sysopenInternal(String path,
ModeFlags modes,
int perm) |
Modifier and Type | Method and Description |
---|---|
ChannelDescriptor |
URLResource.openDescriptor(ModeFlags flags,
int perm) |
ChannelDescriptor |
FileResource.openDescriptor(ModeFlags flags,
int perm) |
ChannelDescriptor |
ClasspathResource.openDescriptor(ModeFlags flags,
int perm) |
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject[] strings,
Map env,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject string,
Map env,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject string,
ModeFlags modes) |
Constructor and Description |
---|
ShellLauncher.POpenProcess(Process child,
Ruby runtime,
ModeFlags modes) |
Modifier and Type | Field and Description |
---|---|
protected ModeFlags |
ChannelStream.modes |
Modifier and Type | Method and Description |
---|---|
static ModeFlags |
ModeFlags.createModeFlags(int oflags) |
ModeFlags |
IOOptions.getModeFlags() |
ModeFlags |
Stream.getModes() |
ModeFlags |
CRLFStreamWrapper.getModes() |
ModeFlags |
ChannelStream.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,
String path,
ModeFlags modes) |
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) |
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(String cwd,
String path,
ModeFlags flags)
Open a new descriptor using the given working directory, file path,
mode flags, and file permission.
|
static ChannelDescriptor |
ChannelDescriptor.open(String cwd,
String path,
ModeFlags flags,
ClassLoader classLoader)
Open a new descriptor using the given working directory, file path,
mode flags, and file permission.
|
static ChannelDescriptor |
ChannelDescriptor.open(String cwd,
String path,
ModeFlags flags,
int perm,
jnr.posix.POSIX posix)
Open a new descriptor using the given working directory, file path,
mode flags, and file permission.
|
static ChannelDescriptor |
ChannelDescriptor.open(String cwd,
String path,
ModeFlags flags,
int perm,
jnr.posix.POSIX posix,
ClassLoader classLoader)
Open a new descriptor using the given working directory, file path,
mode flags, and file permission.
|
ChannelDescriptor |
ChannelDescriptor.reopen(Channel channel,
ModeFlags modes) |
ChannelDescriptor |
ChannelDescriptor.reopen(RandomAccessFile file,
ModeFlags modes) |
void |
IOOptions.setModeFlags(ModeFlags modeFlags) |
void |
Stream.setModes(ModeFlags modeFlags) |
void |
CRLFStreamWrapper.setModes(ModeFlags modes) |
void |
ChannelStream.setModes(ModeFlags modes) |
Constructor and Description |
---|
ChannelDescriptor(Channel channel,
ModeFlags originalModes)
Construct a new ChannelDescriptor with the given channel, file number, mode flags,
and file descriptor object.
|
ChannelDescriptor(Channel channel,
ModeFlags originalModes,
FileDescriptor fileDescriptor)
Construct a new ChannelDescriptor with the given channel, file number, mode flags,
and file descriptor object.
|
ChannelDescriptor(Channel channel,
ModeFlags originalModes,
FileDescriptor fileDescriptor,
boolean isInAppendMode)
Construct a new ChannelDescriptor with the given channel, file number, mode flags,
and file descriptor object.
|
ChannelDescriptor(InputStream baseInputStream,
ModeFlags originalModes)
Special constructor to create the ChannelDescriptor out of the stream, file number,
mode flags, and file descriptor object.
|
ChannelDescriptor(InputStream baseInputStream,
ModeFlags originalModes,
FileDescriptor fileDescriptor)
Special constructor to create the ChannelDescriptor out of the stream, file number,
mode flags, and file descriptor object.
|
IOOptions(ModeFlags modeFlags)
Construct a new IOOptions object with ModeFlags and EncodingOption
|
Copyright © 2001-2016 JRuby. All Rights Reserved.