public class ChannelUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TIMEOUT |
Constructor and Description |
---|
ChannelUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
fillBuffer(java.nio.ByteBuffer buffer,
java.nio.channels.SocketChannel socket) |
static void |
patchLengthAndFlip(AOByteBuffer messageBuf) |
static boolean |
writeBuffer(AOByteBuffer buffer,
java.nio.channels.SocketChannel socket) |
public static final int TIMEOUT
public static int fillBuffer(java.nio.ByteBuffer buffer, java.nio.channels.SocketChannel socket) throws java.io.IOException
java.io.IOException
public static boolean writeBuffer(AOByteBuffer buffer, java.nio.channels.SocketChannel socket) throws java.io.IOException
java.io.IOException
public static void patchLengthAndFlip(AOByteBuffer messageBuf)