Package com.sun.xml.ws.transport.tcp.io
Class ByteBufferOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.sun.xml.ws.transport.tcp.io.ByteBufferOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ByteBufferOutputStream extends OutputStream
- Author:
- Alexey Stashok
-
-
Constructor Summary
Constructors Constructor Description ByteBufferOutputStream()ByteBufferOutputStream(int initSize)ByteBufferOutputStream(ByteBuffer outputBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ByteBuffergetByteBuffer()voidreset()voidwrite(int data)-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write, write
-
-
-
-
Constructor Detail
-
ByteBufferOutputStream
public ByteBufferOutputStream()
-
ByteBufferOutputStream
public ByteBufferOutputStream(int initSize)
-
ByteBufferOutputStream
public ByteBufferOutputStream(ByteBuffer outputBuffer)
-
-
Method Detail
-
reset
public void reset()
-
getByteBuffer
public ByteBuffer getByteBuffer()
-
write
public void write(int data) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-
-