public class ChannelFD
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
java.nio.channels.Channel |
ch |
java.nio.channels.FileChannel |
chFile |
jnr.enxio.channels.NativeSelectableChannel |
chNative |
java.nio.channels.ReadableByteChannel |
chRead |
java.nio.channels.SeekableByteChannel |
chSeek |
java.nio.channels.SelectableChannel |
chSelect |
java.nio.channels.SocketChannel |
chSock |
java.nio.channels.WritableByteChannel |
chWrite |
java.nio.channels.FileLock |
currentLock |
int |
fakeFileno |
boolean |
isNativeFile |
int |
realFileno |
Constructor and Description |
---|
ChannelFD(java.nio.channels.Channel fd,
jnr.posix.POSIX posix,
FilenoUtil filenoUtil) |
Modifier and Type | Method and Description |
---|---|
int |
bestFileno() |
void |
close() |
ChannelFD |
dup() |
int |
dup2From(jnr.posix.POSIX posix,
ChannelFD dup2Source) |
public java.nio.channels.Channel ch
public java.nio.channels.ReadableByteChannel chRead
public java.nio.channels.WritableByteChannel chWrite
public java.nio.channels.SeekableByteChannel chSeek
public java.nio.channels.SelectableChannel chSelect
public java.nio.channels.FileChannel chFile
public java.nio.channels.SocketChannel chSock
public jnr.enxio.channels.NativeSelectableChannel chNative
public int realFileno
public int fakeFileno
public java.nio.channels.FileLock currentLock
public boolean isNativeFile
public ChannelFD(java.nio.channels.Channel fd, jnr.posix.POSIX posix, FilenoUtil filenoUtil)
public ChannelFD dup()
public int dup2From(jnr.posix.POSIX posix, ChannelFD dup2Source)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public int bestFileno()
Copyright © 2001-2018 JRuby. All Rights Reserved.