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, wait
isFastJava8IO, wrap, wrapUnsafe
protected final SocketChannel socketChannel
public SocketChannel socketChannel()
socketChannel
in interface ISocketChannel
public int read(ByteBuffer byteBuffer) throws IOException
read
in interface ISocketChannel
IOException
public int write(ByteBuffer byteBuffer) throws IOException
write
in interface ISocketChannel
IOException
public long write(ByteBuffer[] byteBuffer) throws IOException
write
in interface ISocketChannel
IOException
public Socket socket()
socket
in interface ISocketChannel
public void configureBlocking(boolean blocking) throws IOException
configureBlocking
in interface ISocketChannel
IOException
public InetSocketAddress getRemoteAddress() throws IORuntimeException
getRemoteAddress
in interface ISocketChannel
IORuntimeException
public InetSocketAddress getLocalAddress() throws IORuntimeException
getLocalAddress
in interface ISocketChannel
IORuntimeException
public boolean isOpen()
isOpen
in interface ISocketChannel
public boolean isBlocking()
isBlocking
in interface ISocketChannel
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2018. All rights reserved.