public class TCPNIOUtils extends Object
| Constructor and Description |
|---|
TCPNIOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Buffer |
allocateAndReadBuffer(TCPNIOConnection connection) |
static int |
flushByteBuffer(SocketChannel channel,
ByteBuffer byteBuffer) |
static int |
flushByteBuffers(SocketChannel channel,
ByteBuffer[] byteBuffer,
int firstBufferOffest,
int numberOfBuffers) |
static int |
readBuffer(TCPNIOConnection connection,
Buffer buffer) |
static int |
readCompositeBuffer(TCPNIOConnection connection,
CompositeBuffer buffer) |
static int |
readSimpleBuffer(TCPNIOConnection connection,
Buffer buffer) |
static int |
writeCompositeBuffer(TCPNIOConnection connection,
CompositeBuffer buffer) |
static int |
writeSimpleBuffer(TCPNIOConnection connection,
Buffer buffer) |
public static int writeCompositeBuffer(TCPNIOConnection connection, CompositeBuffer buffer) throws IOException
IOExceptionpublic static int writeSimpleBuffer(TCPNIOConnection connection, Buffer buffer) throws IOException
IOExceptionpublic static int flushByteBuffer(SocketChannel channel, ByteBuffer byteBuffer) throws IOException
IOExceptionpublic static int flushByteBuffers(SocketChannel channel, ByteBuffer[] byteBuffer, int firstBufferOffest, int numberOfBuffers) throws IOException
IOExceptionpublic static Buffer allocateAndReadBuffer(TCPNIOConnection connection) throws IOException
IOExceptionpublic static int readBuffer(TCPNIOConnection connection, Buffer buffer) throws IOException
IOExceptionpublic static int readCompositeBuffer(TCPNIOConnection connection, CompositeBuffer buffer) throws IOException
IOExceptionpublic static int readSimpleBuffer(TCPNIOConnection connection, Buffer buffer) throws IOException
IOExceptionCopyright © 2015 Oracle Corporation. All Rights Reserved.