Package org.jruby.util.io
Class ChannelFD
java.lang.Object
org.jruby.util.io.ChannelFD
- All Implemented Interfaces:
Closeable
,AutoCloseable
Created by headius on 5/24/14.
-
Field Summary
FieldsModifier and TypeFieldDescriptionjnr.enxio.channels.NativeSelectableChannel
int
boolean
int
-
Constructor Summary
ConstructorsConstructorDescriptionChannelFD
(Channel fd, jnr.posix.POSIX posix, FilenoUtil filenoUtil) ChannelFD
(Channel fd, jnr.posix.POSIX posix, FilenoUtil filenoUtil, int flags) -
Method Summary
-
Field Details
-
ch
-
chRead
-
chWrite
-
chSeek
-
chSelect
-
chFile
-
chSock
-
chNative
public jnr.enxio.channels.NativeSelectableChannel chNative -
realFileno
public int realFileno -
fakeFileno
public int fakeFileno -
currentLock
-
isNativeFile
public boolean isNativeFile
-
-
Constructor Details
-
ChannelFD
-
ChannelFD
-
-
Method Details
-
dup
-
dup2From
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
bestFileno
public int bestFileno() -
bestFileno
public int bestFileno(boolean forceFileno)
-