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

java.lang.Object
  extended by java.io.OutputStream
      extended by com.sun.xml.ws.transport.tcp.io.ByteBufferOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class ByteBufferOutputStream
extends java.io.OutputStream


Constructor Summary
ByteBufferOutputStream()
           
ByteBufferOutputStream(java.nio.ByteBuffer outputBuffer)
           
ByteBufferOutputStream(int initSize)
           
 
Method Summary
 void close()
           
 java.nio.ByteBuffer getByteBuffer()
           
 void reset()
           
 void write(int data)
           
 
Methods inherited from class java.io.OutputStream
flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBufferOutputStream

public ByteBufferOutputStream()

ByteBufferOutputStream

public ByteBufferOutputStream(int initSize)

ByteBufferOutputStream

public ByteBufferOutputStream(java.nio.ByteBuffer outputBuffer)
Method Detail

reset

public void reset()

getByteBuffer

public java.nio.ByteBuffer getByteBuffer()

write

public void write(int data)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

close

public void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream