Top Deprecated By Reference
JRuby Base 9.4.8.0

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
org.jruby.MetaClass(Ruby runtime, RubyClass superClass, IRubyObject attached)

org.jruby.Ruby.callEventHooks(ThreadContext context, RubyEvent event, String file, int line, String name, IRubyObject type)

org.jruby.Ruby.execRecursiveOuter(Ruby.RecursiveFunction func, IRubyObject obj)

Use ThreadContext.safeRecurse.

org.jruby.Ruby.fastGetClass(String
the name of the class; must be an interned String!
internedName
)

org.jruby.Ruby.getDefaultRand()

internal API, to be hidden

org.jruby.Ruby.getRandom()

internal API, to be removed

org.jruby.Ruby.newFrozenError(String objectType, boolean runtimeError)

org.jruby.Ruby.parse(String content, String file, DynamicScope scope, int lineNumber, boolean extraPositionInformation)

org.jruby.Ruby.parse(ByteList content, String file, DynamicScope scope, int lineNumber, boolean extraPositionInformation)

org.jruby.Ruby.parseEval(String source, String file, DynamicScope scope, int lineNumber)

org.jruby.Ruby.parseEval(ByteList source, String file, DynamicScope scope, int lineNumber)

org.jruby.Ruby.parseFile(InputStream in, String file, DynamicScope scope, int lineNumber)

org.jruby.Ruby.parseFile(String file, InputStream in, DynamicScope scope, int lineNumber)

org.jruby.Ruby.parseFileAndGetAST(InputStream in, String file, DynamicScope scope, int lineNumber, boolean isFromMain)

Returns:

The root node of the parsed script
org.jruby.Ruby.parseFromMain
(InputStream
The input stream from which to read the script
inputStream
,
String
The filename to use for parsing
filename
)

Returns:

The result of executing the script
org.jruby.Ruby.runNormally
(Node
The root node of the script to be executed bytecode before execution
scriptNode
,
boolean
whether to wrap the execution in an anonymous module
wrap
)

org.jruby.Ruby.runNormally(Node scriptNode, IRubyObject self, boolean wrap)

Returns:

The result of executing the script
org.jruby.Ruby.runNormally
(Node
The root node of the script to be executed bytecode before execution
scriptNode
)

Returns:

The result of executing the specified script
org.jruby.Ruby.runWithGetsLoop
(Node
The root node of the script to execute
scriptNode
,
boolean
Whether $_ should be printed after each loop (as in the -p command-line flag)
printing
,
boolean
Whether line endings should be processed by setting $\ to $/ and chop!ing every line read
processLineEnds
,
boolean
Whether to split each line read using String#split bytecode before executing.
split
,
boolean unused)

org.jruby.Ruby.safeRecurse(Ruby.RecursiveFunctionEx<T> func, ThreadContext context, T state, IRubyObject obj, String name, boolean outer)

Use ThreadContext.safeRecurse

org.jruby.Ruby.setDefaultRand(RubyRandom.RandomType defaultRand)

the modified field is now unused and deprecated and the set is ignored

org.jruby.RubyArgsFile.each19(final ThreadContext context, IRubyObject recv, IRubyObject[] args, final Block block)

org.jruby.RubyArray.aref(IRubyObject[] args)

Use the versions with zero, one, or two args.

org.jruby.RubyArray.aset(IRubyObject[] args)

Use the versions with zero, one, or two args.

org.jruby.RubyArray.ensureCapacity(int
the desired minimum capacity of the internal array
minCapacity
)

org.jruby.RubyArray.fetch(ThreadContext context, IRubyObject[] args, Block block)

Use the versions with zero, one, or two args.

org.jruby.RubyArray.first(IRubyObject[] args)

Use the versions with zero, one, or two args.

Returns:

a read-only copy of this list
org.jruby.RubyArray.getList
()

RubyArray implements List, use it directly

org.jruby.RubyArray.initialize(ThreadContext context, IRubyObject[] args, Block block)

Use the versions with zero, one, or two args.

org.jruby.RubyArray.last(IRubyObject[] args)

Use the versions with zero, one, or two args.

org.jruby.RubyArray.slice_bang(IRubyObject[] args)

Use the versions with zero, one, or two args.

org.jruby.RubyBasicObject(Ruby runtime, RubyClass metaClass, boolean useObjectSpace, boolean canBeTainted)

org.jruby.RubyBasicObject.convertToInteger(int methodIndex, String convertMethod)

org.jruby.RubyBasicObject.methods(ThreadContext context, IRubyObject[] args, boolean useSymbols)

Returns:

true if this responds to the given method !!! For some reason MRI shows the arity of respond_to? as -1, when it should be -2; that's why this is rest instead of required, optional = 1 Going back to splitting according to method arity. MRI is wrong about most of these anyway, and since we have arity splitting in both the compiler and the interpreter, the performance benefit is important for this method.
org.jruby.RubyBasicObject.respond_to_p
(IRubyObject mname)

Returns:

the result of invoking the method identified by aSymbol.
org.jruby.RubyBasicObject.send
(ThreadContext context, Block block)

org.jruby.RubyBasicObject.syncVariables(List<Variable<Object>>
the variables to be set for object
variables
)

org.jruby.RubyClass.invoke(ThreadContext context, IRubyObject self, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block)

org.jruby.RubyClass.invoke(ThreadContext context, IRubyObject self, String name, CallType callType, Block block)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

org.jruby.RubyClass.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType, Block block)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

org.jruby.RubyClass.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType, Block block)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

org.jruby.RubyClass.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, CallType callType, Block block)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

org.jruby.RubyClass.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, CallType callType, Block block)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

org.jruby.RubyClass.invoke(ThreadContext context, IRubyObject self, String name, CallType callType)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

org.jruby.RubyClass.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

org.jruby.RubyClass.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

org.jruby.RubyClass.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, CallType callType)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

org.jruby.RubyClass.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, CallType callType)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

Returns:

sub-classes of this class
org.jruby.RubyClass.subclasses
(ThreadContext context, IRubyObject
{ true/false } whether to recurse all sub-classes
recursive
)

org.jruby.RubyContinuation(Ruby
Current JRuby runtime
runtime
,
IRubyObject
The tag to use
tag
)

org.jruby.RubyDir.getContents(FileResource directory, Ruby runtime)

no longer used

org.jruby.RubyEncoding.decodeISO(byte[] bytes, int start, int length)

use decodeRaw(byte[], int, int)

org.jruby.RubyFile.expandPathInternal(ThreadContext context, IRubyObject[] args, boolean expandUser, boolean canonicalize)

org.jruby.RubyFixnum.intPowTmp2(ThreadContext context, IRubyObject y, final long mm, boolean negaFlg)

org.jruby.RubyHash.aref(IRubyObject key)

use RubyHash.op_aref instead

org.jruby.RubyHash.aset(IRubyObject key, IRubyObject value)

use RubyHash.op_aset instead

org.jruby.RubyHash.each19(final ThreadContext context, final Block block)

org.jruby.RubyHash.each_pair(final ThreadContext context, final Block block)

org.jruby.RubyHash.each_pairCommon(final ThreadContext context, final Block block, final boolean oneNine)

org.jruby.RubyHash.internalPutSmall(final IRubyObject key, final IRubyObject value, final boolean checkForExisting)

org.jruby.RubyIO(Ruby runtime, STDIO stdio)

org.jruby.RubyIO(Ruby runtime, RubyClass cls, ShellLauncher.POpenProcess process, RubyHash options, IOOptions ioOptions)

org.jruby.RubyIO.chars19(final ThreadContext context, final Block block)

org.jruby.RubyIO.doWriteNonblock(ThreadContext context, IRubyObject[] argv, boolean useException)

org.jruby.RubyIO.each_char19(final ThreadContext context, final Block block)

org.jruby.RubyIO.getIOModes(Ruby runtime, String modesString)

org.jruby.RubyIO.getline(Ruby runtime, ByteList separator, long limit)

org.jruby.RubyIO.getline(ThreadContext context, ByteList separator, long limit)

org.jruby.RubyInteger(Ruby runtime, RubyClass rubyClass, boolean useObjectSpace, boolean canBeTainted)

org.jruby.RubyKernel.methodMissing(ThreadContext context, IRubyObject recv, String name, Visibility lastVis, CallType lastCallType, IRubyObject[] args, Block block)

org.jruby.RubyModule.addMethodAtBootTimeOnly(String
The name to which to bind the method
id
,
DynamicMethod
The method to bind
method
)

No longer used, internal API!

org.jruby.RubyModule.constantsCommon19(ThreadContext context, boolean replaceModule, boolean allConstants)

org.jruby.RubyModule.fastGetConstant(String internedName, boolean inherit)

org.jruby.RubyModule.fastSetClassVar(final String internedName, final IRubyObject value)

org.jruby.RubyModule.index

use RubyModule#getClassIndex()

org.jruby.RubyModule.isMethodBound(String name, boolean checkVisibility, boolean checkRespondTo)

Returns:

The module wrapper
org.jruby.RubyModule.newIncludeClass
(RubyClass superClazz)

org.jruby.RubyNumeric(Ruby runtime, RubyClass metaClass, boolean useObjectSpace, boolean canBeTainted)

org.jruby.RubyNumeric.str2fnum19(Ruby runtime, RubyString arg, boolean strict)

org.jruby.RubyObject(Ruby runtime, RubyClass metaClass, boolean useObjectSpace, boolean canBeTainted)

org.jruby.RubyObject.convertToType(RubyClass target, int convertMethodIndex)

org.jruby.RubyObject.puts(Object obj)

no longer used - uses Java's System.out

org.jruby.RubyProc(Ruby runtime, RubyClass rubyClass, Block.Type type, ISourcePosition sourcePosition)

org.jruby.RubyProc.newProc(Ruby runtime, Block block, Block.Type type, ISourcePosition sourcePosition)

org.jruby.RubyRegexp.match_m19(ThreadContext context, IRubyObject str, boolean useBackref, Block block)

org.jruby.RubyRegexp.matcherMatch(Ruby runtime, Matcher matcher, int start, int range, int option)

org.jruby.RubyRegexp.matcherSearch(Ruby runtime, Matcher matcher, int start, int range, int option)

org.jruby.RubyRegexp.preprocessDRegexp(Ruby runtime, RubyString[] strings, int embeddedOptions)

org.jruby.RubyRegexp.quote19(ByteList bs, boolean asciiOnly)

org.jruby.RubyRegexp.search(ThreadContext context, RubyString str, int pos, boolean reverse, IRubyObject[] holder)

org.jruby.RubyRegexp.search19(ThreadContext context, RubyString str, int pos, boolean reverse)

org.jruby.RubyRegexp.search19(ThreadContext context, RubyString str, int pos, boolean reverse, IRubyObject[] holder)

org.jruby.RubyString.cat19(ByteList other, int codeRange)

org.jruby.RubyString.inspect19(final Ruby runtime, ByteList byteList)

org.jruby.RubyString.makeShared19(Ruby runtime, int index, int len)

org.jruby.RubyString.makeShared19(Ruby runtime, RubyClass meta, int index, int len)

org.jruby.RubyString.makeSharedString19(Ruby runtime, int index, int len)

org.jruby.RubyString.setValue(CharSequence
The new java.lang.String this RubyString should encapsulate
value
)

org.jruby.RubyString.split19(IRubyObject spat, ThreadContext context, boolean useBackref)

org.jruby.RubyString.split19(ThreadContext context, IRubyObject arg0, boolean useBackref)

org.jruby.RubyString.stringToInum19(int base, boolean badcheck)

org.jruby.RubyString.substr(int beg, int len)

org.jruby.RubyString.substr19(Ruby runtime, int beg, int len)

org.jruby.RubyThread.ReadWrite.run(ThreadContext context, Data data, byte[] bytes, int start, int length)

Prefer version that receives ByteBuffer rather than recreating every time.

org.jruby.ast.NewlineNode(int line, Node nextNode)

org.jruby.common.NullWarnings.warn(IRubyWarnings.ID id, String fileName, int lineNumber, String message, Object... data)

org.jruby.common.NullWarnings.warning(IRubyWarnings.ID id, String fileName, int lineNumber, String message, Object... data)

org.jruby.compiler.impl.SkinnyMethodAdapter.visitMethodInsn(int
the opcode of the type instruction to be visited. This opcode is either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or INVOKEINTERFACE.
arg0
,
String
the internal name of the method's owner class (see Type#getInternalName()).
arg1
,
String
the method's name.
arg2
,
String
the method's descriptor (see Type).
arg3
)

org.jruby.compiler.impl.SkinnyMethodAdapter.visitMethodInsn(int
the opcode of the type instruction to be visited. This opcode is either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or INVOKEINTERFACE.
arg0
,
String
the internal name of the method's owner class (see Type#getInternalName()).
arg1
,
String
the method's name.
arg2
,
String
the method's descriptor (see Type).
arg3
,
boolean
if the method's owner class is an interface.
arg4
)

Returns:

an error output stream that Ruby runtime has
org.jruby.embed.ScriptingContainer.getErr
()

As of JRuby 1.5.0, Replaced by getError()

Returns:

an input stream that Ruby runtime has.
org.jruby.embed.ScriptingContainer.getIn
()

As of JRuby 1.5.0, replaced by getInput().

Returns:

an output stream that Ruby runtime has
org.jruby.embed.ScriptingContainer.getOut
()

As of JRuby 1.5.0, replaced by getOutput().

Returns:

Ruby runtime of a specified local context
org.jruby.embed.ScriptingContainer.getRuntime
()

As of JRuby 1.5.0. Use getProvider().getRuntime() method instead.

org.jruby.embed.ScriptingContainer.setProfile(RubyInstanceConfig.ProfilingMode
a new profiling mode to be set.
mode
)

Use setProfilingMode instead

Returns:

a root node of parsed Ruby script
org.jruby.embed.internal.EmbedEvalUnitImpl.getNode
()

Returns:

JRuby home path if exists, null when failed to find it.
org.jruby.embed.util.SystemPropertyCatcher.findJRubyHome
(Object
any instance to get a resource
instance
)

Returns:

true is the given name is correct to choose Ruby 1.9 version. Otherwise, returns false.
org.jruby.embed.util.SystemPropertyCatcher.isRuby19
(String
a possible name that expresses Ruby 1.9.
name
)

org.jruby.embed.util.SystemPropertyCatcher.setJRubyHome(ScriptingContainer
ScriptingContainer to be set jruby home.
container
)

org.jruby.embed.variable.VariableInterceptor.inject(BiVariableMap
a variable map that has name-value pairs to be injected
map
,
Ruby
Ruby runtime
runtime
,
ManyVarsDynamicScope
scope to inject local variable values
scope
)

org.jruby.exceptions.RaiseException(Ruby runtime, RubyClass exceptionClass, String msg, boolean unused)

org.jruby.exceptions.RaiseException(Ruby runtime, RubyClass exceptionClass, String msg, IRubyObject backtrace)

org.jruby.exceptions.RaiseException(Ruby runtime, RubyClass exceptionClass, String msg, IRubyObject backtrace, boolean unused)

org.jruby.ext.bigdecimal.RubyBigDecimal.newInstance(ThreadContext context, IRubyObject recv, IRubyObject arg, boolean strict, boolean exception)

org.jruby.ext.date.RubyDate.initialize(ThreadContext context, IRubyObject dt)

kept due AR-JDBC (uses RubyClass.newInstance(...) to 'fast' allocate a Date instance)

org.jruby.ext.ripper.Warnings.warn(Warnings.ID id, String fileName, int lineNumber, String message, Object... data)

org.jruby.ext.ripper.Warnings.warning(Warnings.ID id, String fileName, int lineNumber, String message, Object... data)

org.jruby.internal.runtime.methods.AttrReaderMethod(RubyModule implementationClass, Visibility visibility, CallConfiguration callConfiguration, String variableName)

org.jruby.internal.runtime.methods.AttrWriterMethod(RubyModule implementationClass, Visibility visibility, CallConfiguration callConfiguration, String variableName)

org.jruby.internal.runtime.methods.CallConfiguration.getCallConfig(boolean frame, boolean scope, boolean backtrace)

Returns:

The arity of the method, as reported to Ruby consumers.
org.jruby.internal.runtime.methods.DynamicMethod.getArity
()

org.jruby.ir.builder.IRBuilderAST.buildAST(boolean isCommandLineScript, String arg)

org.jruby.ir.operands.UndefinedValue.syncVariables(List<Variable<Object>>
the variables to be set for object
variables
)

org.jruby.java.util.ArrayUtils.copyDataToJavaArray(ThreadContext context, RubyArray<T extends IRubyObject> rubyArray, int src, JavaArray javaArray, int dest, int length)

org.jruby.javasupport.JavaClass.get(final Ruby runtime, final Class<?> klass)

Returns:

Java proxy class, Java reified class or nil
org.jruby.javasupport.JavaClass.java_class
(final ThreadContext context, final RubyModule type)

Returns:

resolved type or null if resolution failed
org.jruby.javasupport.JavaClass.resolveType
(final ThreadContext context, final IRubyObject type)

org.jruby.javasupport.JavaClass.toRubyArray(final Ruby runtime, final Class<?>[] classes)

org.jruby.javasupport.JavaMethod.create(Ruby runtime, Class<?> javaClass, String methodName, Class<?>[] argumentTypes)

org.jruby.javasupport.JavaMethod.createDeclared(Ruby runtime, Class<?> javaClass, String methodName, Class<?>[] argumentTypes)

org.jruby.javasupport.JavaUtil.convertArgument(Ruby runtime, Object argument, Class<?> parameterType)

org.jruby.javasupport.JavaUtil.unwrapJavaValue(final Ruby runtime, final IRubyObject object, final String errorMessage)

org.jruby.parser.Parser.parse(String file, byte[] content, DynamicScope blockScope, ParserConfiguration configuration)

org.jruby.parser.ParserConfiguration(Ruby runtime, int lineNumber, boolean inlineSource, boolean isFileParse, RubyInstanceConfig config)

org.jruby.runtime.Binding(IRubyObject self, Frame frame, Visibility visibility, DynamicScope dynamicScope, BacktraceElement backtrace)

Returns:

the arity
org.jruby.runtime.Block.arity
()

org.jruby.runtime.Helpers.addInstanceMethod(RubyModule containingClass, String name, DynamicMethod method, Visibility visibility, ThreadContext context, Ruby runtime)

org.jruby.runtime.Helpers.arrayPostOrNil(RubyArray<T extends IRubyObject> array, int pre, int post, int index)

org.jruby.runtime.Helpers.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType, Block block)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

org.jruby.runtime.Helpers.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType, Block block)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

org.jruby.runtime.Helpers.invoke(ThreadContext context, IRubyObject self, String name, CallType callType)

Use finvoke if you do not want visibility-checking or invokeFrom if you do.

org.jruby.runtime.Helpers.isJavaExceptionHandled(Throwable currentThrowable, IRubyObject throwable0, IRubyObject throwable1, IRubyObject throwable2, ThreadContext context)

org.jruby.runtime.Helpers.subarrayOrEmpty(RubyArray<T extends IRubyObject> array, Ruby runtime, int index, int post)

org.jruby.runtime.ThreadContext.clearCallInfo()

use the trivially-inlinable static version

Returns:

the old call info
org.jruby.runtime.ThreadContext.resetCallInfo
()

use the trivially-inlinable static version

org.jruby.runtime.builtin.IRubyObject.convertToInteger(int convertMethodIndex, String convertMethod)

org.jruby.runtime.builtin.IRubyObject.syncVariables(List<Variable<Object>>
the variables to be set for object
variables
)

Returns:

the ClassIndex of the native type this object was constructed from
org.jruby.runtime.marshal.CoreObjectType.getNativeTypeIndex
()

org.jruby.runtime.marshal.UnmarshalStream(Ruby runtime, InputStream in, IRubyObject proc, boolean taint, boolean untrust)

Returns:

last T from headVisitor
org.jruby.util.ByteListHelper.split
(ByteList
to be split
value
,
ByteList
the pattern to split value with
pattern
,
ByteListHelper.Visit<ByteList, T>
visitor for all but last segment
bodyVisitor
,
ByteListHelper.Visit<ByteList, T>
visitor for the last segment (if null if will use bodyVisitor).
headVisitor
)

This was only used by Module#const_defined, but was difficult to match MRI's equivalent in this form

org.jruby.util.ConvertBytes(Ruby runtime, ByteList str, int base, boolean badcheck, boolean is19)

org.jruby.util.ConvertBytes.byteListToInum19(Ruby runtime, ByteList str, int base, boolean badcheck)

org.jruby.util.Dir.range(byte[] _pat, int pat, int pend, char test, int flags)

No replacement; not intended to be made public

Returns:

just opened InputStream
org.jruby.util.FileResource.inputStream
()

Opens a new input stream to read the contents of a resource and returns it. Note that implementations may be allocating native memory for the stream, so callers need to close this when they are done with it. users of this method should follow the pattern: close the stream where you open it.

Returns:

channel
org.jruby.util.FileResource.openChannel
(ModeFlags flags, int perm)

use openChannel(int, int) instead

org.jruby.util.IdUtil.isNameString19(String id, int start, int limit)

org.jruby.util.Pack.decode(ThreadContext context, Ruby runtime, ByteBuffer encode, int occurrences, RubyArray<T extends IRubyObject> result, Block block, Pack.Converter converter)

org.jruby.util.Pack.pack(Ruby runtime, RubyArray<T extends IRubyObject> list, ByteList formatString)

org.jruby.util.Pack.pack(ThreadContext context, Ruby runtime, RubyArray<T extends IRubyObject> list, RubyString formatString)

org.jruby.util.Pack.unpack(Ruby runtime, ByteList encodedString, ByteList formatString)

org.jruby.util.Pack.unpackWithBlock(ThreadContext context, Ruby runtime, ByteList encodedString, ByteList formatString, Block block)

org.jruby.util.ShellLauncher.popen(Ruby runtime, IRubyObject[] strings, Map<K, V> env, IOOptions modes)

org.jruby.util.ShellLauncher.popen3(Ruby runtime, IRubyObject[] strings, boolean addShell)

org.jruby.util.TypeConverter.convertToType(IRubyObject obj, RubyClass target, int convertMethodIndex, String convertMethod, boolean raise)

org.jruby.util.TypeConverter.convertToType(IRubyObject obj, RubyClass target, int convertMethodIndex, String convertMethod)

org.jruby.util.TypeConverter.convertToType19(IRubyObject obj, RubyClass target, String convertMethod, boolean raise)

Returns:

the converted value
org.jruby.util.TypeConverter.convertToTypeOrRaise
(IRubyObject
the object to convert
obj
,
RubyClass
is the type we are trying to convert to
target
,
String
is the method to be called to try and convert to targeType
convertMethod
)

org.jruby.util.TypeConverter.convertToTypeWithCheck(IRubyObject obj, RubyClass target, int convertMethodIndex, String convertMethod)

org.jruby.util.io.EncodingUtils.strTranscode0(ThreadContext context, int argc, IRubyObject[] args, IRubyObject[] self_p, int ecflags, IRubyObject ecopts)

Returns:

the mode flags
org.jruby.util.io.ModeFlags.getModesFromChannel
(Channel
the channel to examine for capabilities
channel
)

org.jruby.util.io.OpenFile.binwrite(ThreadContext context, byte[] ptrBytes, int ptr, int len, boolean nosync)

org.jruby.util.io.PosixShim.open(String cwd, String path, ModeFlags flags, int perm, ClassLoader classLoader)