Package com.sun.xml.ws.transport.tcp.io
Class OutputWriter
- java.lang.Object
-
- com.sun.xml.ws.transport.tcp.io.OutputWriter
-
public final class OutputWriter extends Object
NIO utility to flushByteBuffer- Author:
- Scott Oaks, Alexey Stashok
-
-
Constructor Summary
Constructors Constructor Description OutputWriter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidflushChannel(SocketChannel socketChannel, ByteBuffer bb)Flush the buffer by looping until theByteBufferis emptystatic voidflushChannel(SocketChannel socketChannel, ByteBuffer[] bb)Flush the buffer by looping until theByteBufferis empty
-
-
-
Method Detail
-
flushChannel
public static void flushChannel(SocketChannel socketChannel, ByteBuffer bb) throws IOException
Flush the buffer by looping until theByteBufferis empty- Parameters:
bb- the ByteBuffer to write.- Throws:
IOException
-
flushChannel
public static void flushChannel(SocketChannel socketChannel, ByteBuffer[] bb) throws IOException
Flush the buffer by looping until theByteBufferis empty- Parameters:
bb- the ByteBuffer to write.- Throws:
IOException
-
-