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