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 flush ByteBuffer
- Author:
- Scott Oaks, Alexey Stashok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutputWriter
public OutputWriter()
flushChannel
public static void flushChannel(SocketChannel socketChannel,
ByteBuffer bb)
throws IOException
- Flush the buffer by looping until the
ByteBuffer is 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 the
ByteBuffer is empty
- Parameters:
bb - the ByteBuffer to write.
- Throws:
IOException
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.