| Package | Description |
|---|---|
| org.jruby | |
| org.jruby.ext.stringio | |
| org.jruby.util | |
| org.jruby.util.io |
| Modifier and Type | Method and Description |
|---|---|
static ModeFlags |
RubyIO.getIOModes(Ruby runtime,
java.lang.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,
java.lang.String mode) |
| Modifier and Type | Method and Description |
|---|---|
protected Stream |
RubyIO.fdopen(ChannelDescriptor existingDescriptor,
ModeFlags modes) |
private Stream |
RubyFile.fopen(java.lang.String path,
ModeFlags flags) |
static IOOptions |
RubyIO.newIOOptions(Ruby runtime,
ModeFlags modeFlags) |
private void |
RubyIO.setupPopen(ModeFlags modes,
ShellLauncher.POpenProcess process) |
private ChannelDescriptor |
RubyFile.sysopen(java.lang.String path,
ModeFlags modes,
int perm) |
protected void |
RubyFile.sysopenInternal(java.lang.String path,
ModeFlags modes,
int perm) |
| Modifier and Type | Field and Description |
|---|---|
(package private) ModeFlags |
RubyStringIO.StringIOData.modes |
| Modifier and Type | Method and Description |
|---|---|
private ModeFlags |
RubyStringIO.initializeModes(java.lang.Object modeArgument) |
| Modifier and Type | Method and Description |
|---|---|
private ChannelDescriptor |
RegularFileResource.createDescriptor(ModeFlags flags) |
ChannelDescriptor |
ClasspathResource.openDescriptor(ModeFlags flags,
int perm) |
ChannelDescriptor |
EmptyFileResource.openDescriptor(ModeFlags flags,
int perm) |
ChannelDescriptor |
FileResource.openDescriptor(ModeFlags flags,
int perm) |
ChannelDescriptor |
JarDirectoryResource.openDescriptor(ModeFlags flags,
int perm) |
ChannelDescriptor |
JarFileResource.openDescriptor(ModeFlags flags,
int perm) |
ChannelDescriptor |
RegularFileResource.openDescriptor(ModeFlags flags,
int perm) |
ChannelDescriptor |
URLResource.openDescriptor(ModeFlags flags,
int perm) |
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject[] strings,
java.util.Map env,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject string,
java.util.Map env,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject string,
ModeFlags modes) |
| Constructor and Description |
|---|
POpenProcess(java.lang.Process child,
Ruby runtime,
ModeFlags modes) |
| Modifier and Type | Field and Description |
|---|---|
private ModeFlags |
IOOptions.modeFlags |
protected ModeFlags |
ChannelStream.modes |
private ModeFlags |
ChannelDescriptor.originalModes
The original org.jruby.util.io.ModeFlags with which the specified
channel was opened.
|
| Modifier and Type | Method and Description |
|---|---|
static ModeFlags |
ModeFlags.createModeFlags(int oflags) |
ModeFlags |
IOOptions.getModeFlags() |
ModeFlags |
CRLFStreamWrapper.getModes() |
ModeFlags |
ChannelStream.getModes() |
ModeFlags |
Stream.getModes() |
private static ModeFlags |
ChannelDescriptor.getModesFromChannel(java.nio.channels.Channel channel)
Build a set of mode flags using the specified channel's actual capabilities.
|
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.
|
private static Stream |
ChannelStream.maybeWrapWithLineEndingWrapper(Stream stream,
ModeFlags modes) |
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,
jnr.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,
jnr.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) |
void |
IOOptions.setModeFlags(ModeFlags modeFlags) |
void |
CRLFStreamWrapper.setModes(ModeFlags modes) |
void |
ChannelStream.setModes(ModeFlags modes) |
void |
Stream.setModes(ModeFlags modeFlags) |
| Constructor and Description |
|---|
ChannelDescriptor(java.nio.channels.Channel channel,
int fileno,
ModeFlags originalModes,
java.io.FileDescriptor fileDescriptor) |
ChannelDescriptor(java.nio.channels.Channel channel,
int fileno,
ModeFlags originalModes,
java.io.FileDescriptor fileDescriptor,
java.util.concurrent.atomic.AtomicInteger refCounter,
boolean canBeSeekable,
boolean isInAppendMode)
Construct a new ChannelDescriptor with the specified channel, file number,
mode flags, file descriptor object and reference counter.
|
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.nio.channels.Channel channel,
ModeFlags originalModes,
java.io.FileDescriptor fileDescriptor,
boolean isInAppendMode)
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.
|
ChannelStream(Ruby runtime,
ChannelDescriptor descriptor,
ModeFlags modes,
boolean autoclose) |
IOOptions(ModeFlags modeFlags)
Construct a new IOOptions object with ModeFlags and EncodingOption
|