public class TCPNIOUtils
extends java.lang.Object
| Constructor and Description |
|---|
TCPNIOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Buffer |
allocateAndReadBuffer(TCPNIOConnection connection) |
static int |
flushByteBuffer(java.nio.channels.SocketChannel channel,
java.nio.ByteBuffer byteBuffer) |
static int |
flushByteBuffers(java.nio.channels.SocketChannel channel,
java.nio.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 java.io.IOException
java.io.IOExceptionpublic static int writeSimpleBuffer(TCPNIOConnection connection, Buffer buffer) throws java.io.IOException
java.io.IOExceptionpublic static int flushByteBuffer(java.nio.channels.SocketChannel channel,
java.nio.ByteBuffer byteBuffer)
throws java.io.IOException
java.io.IOExceptionpublic static int flushByteBuffers(java.nio.channels.SocketChannel channel,
java.nio.ByteBuffer[] byteBuffer,
int firstBufferOffest,
int numberOfBuffers)
throws java.io.IOException
java.io.IOExceptionpublic static Buffer allocateAndReadBuffer(TCPNIOConnection connection) throws java.io.IOException
java.io.IOExceptionpublic static int readBuffer(TCPNIOConnection connection, Buffer buffer) throws java.io.IOException
java.io.IOExceptionpublic static int readCompositeBuffer(TCPNIOConnection connection, CompositeBuffer buffer) throws java.io.IOException
java.io.IOExceptionpublic static int readSimpleBuffer(TCPNIOConnection connection, Buffer buffer) throws java.io.IOException
java.io.IOExceptionCopyright © 2018 Oracle Corporation. All Rights Reserved.