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
IOException
public static int writeSimpleBuffer(TCPNIOConnection connection, Buffer buffer) throws IOException
IOException
public static int flushByteBuffer(SocketChannel channel, ByteBuffer byteBuffer) throws IOException
IOException
public static int flushByteBuffers(SocketChannel channel, ByteBuffer[] byteBuffer, int firstBufferOffest, int numberOfBuffers) throws IOException
IOException
public static Buffer allocateAndReadBuffer(TCPNIOConnection connection) throws IOException
IOException
public static int readBuffer(TCPNIOConnection connection, Buffer buffer) throws IOException
IOException
public static int readCompositeBuffer(TCPNIOConnection connection, CompositeBuffer buffer) throws IOException
IOException
public static int readSimpleBuffer(TCPNIOConnection connection, Buffer buffer) throws IOException
IOException
Copyright © 2015 Oracle Corporation. All rights reserved.