public class NativeSocketChannel extends AbstractSelectableChannel implements ByteChannel, NativeSelectableChannel
Constructor and Description |
---|
NativeSocketChannel(int fd) |
NativeSocketChannel(int fd,
int ops) |
Modifier and Type | Method and Description |
---|---|
int |
getFD() |
protected void |
implCloseSelectableChannel() |
protected void |
implConfigureBlocking(boolean block) |
int |
read(ByteBuffer dst) |
void |
shutdownInput() |
void |
shutdownOutput() |
int |
validOps() |
int |
write(ByteBuffer src) |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
register
begin, close, end, isOpen
public NativeSocketChannel(int fd)
public NativeSocketChannel(int fd, int ops)
protected void implCloseSelectableChannel() throws IOException
implCloseSelectableChannel
in class AbstractSelectableChannel
IOException
protected void implConfigureBlocking(boolean block) throws IOException
implConfigureBlocking
in class AbstractSelectableChannel
IOException
public final int validOps()
validOps
in class SelectableChannel
public final int getFD()
getFD
in interface NativeSelectableChannel
public int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
IOException
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
IOException
public void shutdownInput() throws IOException
IOException
public void shutdownOutput() throws IOException
IOException
Copyright © 2013. All rights reserved.