Top Description Fields Constructors Methods
org.jruby.ext.ffi.io

public Class FileDescriptorIO

extends RubyIO
Class Inheritance
Annotations
@JRubyClass
name:FFI::FileDescriptorIO
parent:IO
Imports
jnr.posix.FileStat, org.jruby.Ruby, .RubyClass, .RubyIO, .RubyModule, .RubyNumeric, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.api.Access, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.io.ModeFlags, java.nio.channels.ByteChannel

An IO implementation that reads/writes to a native file descriptor.

Field Summary

Modifier and TypeField and Description
public static final String
Inherited from org.jruby.RubyIO:
CLOSED_STREAM_MSGFD_CLOEXECopenFilePARAGRAPH_SEPARATORpopenSpecial

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public static RubyClass
public static FileDescriptorIO
public static RubyIO
Inherited from org.jruby.RubyIO:
addBlockingThreadadviseautocloseautoclose_setbinmodebinmodebinreadbinwritebytescharscheckExecEnvcheckExecOptionscheckLengthcheckPopenOptionscheckSpawnOptionscloexecOpenclosecloseclose_on_exec_pclose_on_exec_setclose_readclose_writeclosed_pcodepointsconvertToIOcopy_streamcopy_streamcopy_streamcreateIOClassdoReaddoReadNonblockdoReadNonblockdoReadNonblockdoReadNonblockdoWriteNonblockeacheacheacheacheacheach_byteeach_byteInternaleach_chareach_charInternaleach_codepointeach_lineeach_lineeach_lineeach_lineeach_lineensureYieldCloseensureYieldClosePipeseof_pexternal_encodingfailIfDirectoryfcntlfcntlfilenoflushflushflushRawfor_fdforeachfsyncgetBlockinggetBOMgetbytegetBytegetcgetcgetChannelgetEcflagsgetEcoptsgetEncgetEnc2getInputEncodinggetInStreamgetIOModesgetIOModesIntFromStringgetlinegetlinegetlinegetlinegetlinegetlinegetNativeClassIndexgetOpenFilegetOpenFileCheckedgetOpenFileInitializedgetOutStreamgetPathgetReadEncodinggetsgetsgetsgetsgetSyncGetWriteIOinitializeinitializeinitializeinitialize_copyinspectinternal_encodingioCloseioctlioOpenioOpenioStaticWriteisAutocloseisClosedlinenolineno_setlinesMakeOpenFilenewInstancenewIOnewIOOptionsnewIOOptionsnewIOOptionsnewIOOptionsnewIOOptionsnewModeFlagsnewModeFlagsnewModeFlagsobliterateProcessop_appendop_binmodeopenparseIOOptionspathpidpipepipepipepipepipepipepopenpopen3popen4popenSpecialpospos_setpreadpreadprepStdioprepStdioprintprintprintprintprintprintprint0print1print2print3printfprintfputcputcputsputsputsputsputsputsputs0puts1puts2puts3pwriterbIoClosereadreadreadreadreadreadreadreadread_nonblockread_nonblockread_nonblockread_nonblockreadbytereadcharreadcharreadlinereadlinereadlinereadlinereadlinereadlinesreadlinesreadlinesreadlinesreadlinesreadlinesreadpartialreadpartialreadpartialremoveBlockingThreadreopenreopenIOrewindseekseekseekselectselect_staticset_encodingset_encodingset_encodingset_encoding_by_bomsetAscii8bitBinmodesetAutoclosesetBlockingsetBOMsetEcflagssetEcoptssetEncsetEnc2setEncodingsetPathsetSyncstatsyncsync_setsync_setsysopensysopensysopensysreadsysreadsysreadsysseeksyswriteto_iotoJavatoStringtryConverttty_pungetbyteungetcupdateIOOptionsFromOptionswaitwaitwait_readablewait_readablewait_writablewait_writablewritewritewritewritewritewritewritewritewritewritewritewritewritewritewritewritewrite2write3write_nonblockwrite_nonblockwrite_nonblockwriteStaticwritevwritevwritevwritevwritev

Field Detail

CLASS_NAMEback to summary
public static final String CLASS_NAME

Constructor Detail

FileDescriptorIOback to summary
public FileDescriptorIO(Ruby runtime, RubyClass klass)
FileDescriptorIOback to summary
public FileDescriptorIO(Ruby runtime, IRubyObject fd)
FileDescriptorIOback to summary
public FileDescriptorIO(ThreadContext context, IRubyObject fd)

Method Detail

createFileDescriptorIOClassback to summary
public static RubyClass createFileDescriptorIOClass(ThreadContext context, RubyModule FFI, RubyClass IO)
newInstanceback to summary
public static FileDescriptorIO newInstance(ThreadContext context, IRubyObject recv, IRubyObject fd)
Annotations
@JRubyMethod
name:new
meta:true
wrapback to summary
public static RubyIO wrap(ThreadContext context, IRubyObject recv, IRubyObject fd)
Annotations
@JRubyMethod
name:wrap
meta:true