public class VanillaSocketChannel extends Object implements ISocketChannel
| Modifier and Type | Field and Description |
|---|---|
protected SocketChannel |
socketChannel |
FAST_JAVA8_IO| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configureBlocking(boolean blocking) |
InetSocketAddress |
getLocalAddress() |
InetSocketAddress |
getRemoteAddress() |
boolean |
isBlocking() |
boolean |
isOpen() |
int |
read(ByteBuffer byteBuffer) |
Socket |
socket() |
SocketChannel |
socketChannel() |
int |
write(ByteBuffer byteBuffer) |
long |
write(ByteBuffer[] byteBuffer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFastJava8IO, wrap, wrapUnsafeprotected final SocketChannel socketChannel
public SocketChannel socketChannel()
socketChannel in interface ISocketChannelpublic int read(ByteBuffer byteBuffer) throws IOException
read in interface ISocketChannelIOExceptionpublic int write(ByteBuffer byteBuffer) throws IOException
write in interface ISocketChannelIOExceptionpublic long write(ByteBuffer[] byteBuffer) throws IOException
write in interface ISocketChannelIOExceptionpublic Socket socket()
socket in interface ISocketChannelpublic void configureBlocking(boolean blocking)
throws IOException
configureBlocking in interface ISocketChannelIOExceptionpublic InetSocketAddress getRemoteAddress() throws IORuntimeException
getRemoteAddress in interface ISocketChannelIORuntimeExceptionpublic InetSocketAddress getLocalAddress() throws IORuntimeException
getLocalAddress in interface ISocketChannelIORuntimeExceptionpublic boolean isOpen()
isOpen in interface ISocketChannelpublic boolean isBlocking()
isBlocking in interface ISocketChannelpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019. All rights reserved.