public class SocketChannelIOHelper
extends java.lang.Object
| 构造器和说明 |
|---|
SocketChannelIOHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
batch(WebSocketImpl ws,
java.nio.channels.ByteChannel sockchannel)
Returns whether the whole outQueue has been flushed
|
static boolean |
read(java.nio.ByteBuffer buf,
WebSocketImpl ws,
java.nio.channels.ByteChannel channel) |
static boolean |
readMore(java.nio.ByteBuffer buf,
WebSocketImpl ws,
WrappedByteChannel channel) |
public static boolean read(java.nio.ByteBuffer buf,
WebSocketImpl ws,
java.nio.channels.ByteChannel channel)
throws java.io.IOException
java.io.IOExceptionpublic static boolean readMore(java.nio.ByteBuffer buf,
WebSocketImpl ws,
WrappedByteChannel channel)
throws java.io.IOException
buf - The ByteBuffer to read fromws - The WebSocketImpl associated with the channelschannel - The channel to read fromWrappedByteChannel.readMore(ByteBuffer)java.io.IOException - May be thrown by WrappedByteChannel.readMore(ByteBuffer)#WrappedByteChannel.readMore(ByteBuffer)public static boolean batch(WebSocketImpl ws, java.nio.channels.ByteChannel sockchannel) throws java.io.IOException
ws - The WebSocketImpl associated with the channelssockchannel - The channel to write tojava.io.IOException - May be thrown by WrappedByteChannel.writeMore()