public class NativeSocketChannel extends java.nio.channels.spi.AbstractSelectableChannel implements java.nio.channels.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(java.nio.ByteBuffer dst) |
void |
shutdownInput() |
void |
shutdownOutput() |
int |
validOps() |
int |
write(java.nio.ByteBuffer src) |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerbegin, close, end, isOpenpublic NativeSocketChannel(int fd)
public NativeSocketChannel(int fd,
int ops)
protected void implCloseSelectableChannel()
throws java.io.IOException
implCloseSelectableChannel in class java.nio.channels.spi.AbstractSelectableChanneljava.io.IOExceptionprotected void implConfigureBlocking(boolean block)
throws java.io.IOException
implConfigureBlocking in class java.nio.channels.spi.AbstractSelectableChanneljava.io.IOExceptionpublic final int validOps()
validOps in class java.nio.channels.SelectableChannelpublic final int getFD()
getFD in interface NativeSelectableChannelpublic int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface java.nio.channels.ReadableByteChanneljava.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
write in interface java.nio.channels.WritableByteChanneljava.io.IOExceptionpublic void shutdownInput()
throws java.io.IOException
java.io.IOExceptionpublic void shutdownOutput()
throws java.io.IOException
java.io.IOExceptionCopyright © 2018. All Rights Reserved.