com.sun.xml.ws.transport.tcp.io
Class OutputWriter

java.lang.Object
  extended by com.sun.xml.ws.transport.tcp.io.OutputWriter

public final class OutputWriter
extends java.lang.Object

NIO utility to flush ByteBuffer


Constructor Summary
OutputWriter()
           
 
Method Summary
static void flushChannel(java.nio.channels.SocketChannel socketChannel, java.nio.ByteBuffer bb)
          Flush the buffer by looping until the ByteBuffer is empty
static void flushChannel(java.nio.channels.SocketChannel socketChannel, java.nio.ByteBuffer[] bb)
          Flush the buffer by looping until the ByteBuffer is empty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputWriter

public OutputWriter()
Method Detail

flushChannel

public static void flushChannel(java.nio.channels.SocketChannel socketChannel,
                                java.nio.ByteBuffer bb)
                         throws java.io.IOException
Flush the buffer by looping until the ByteBuffer is empty

Parameters:
bb - the ByteBuffer to write.
Throws:
java.io.IOException

flushChannel

public static void flushChannel(java.nio.channels.SocketChannel socketChannel,
                                java.nio.ByteBuffer[] bb)
                         throws java.io.IOException
Flush the buffer by looping until the ByteBuffer is empty

Parameters:
bb - the ByteBuffer to write.
Throws:
java.io.IOException