Package org.capnproto
Class BufferedOutputStreamWrapper
- java.lang.Object
-
- org.capnproto.BufferedOutputStreamWrapper
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,WritableByteChannel,BufferedOutputStream
public final class BufferedOutputStreamWrapper extends Object implements BufferedOutputStream
-
-
Constructor Summary
Constructors Constructor Description BufferedOutputStreamWrapper(WritableByteChannel w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()ByteBuffergetWriteBuffer()booleanisOpen()intwrite(ByteBuffer src)
-
-
-
Constructor Detail
-
BufferedOutputStreamWrapper
public BufferedOutputStreamWrapper(WritableByteChannel w)
-
-
Method Detail
-
write
public final int write(ByteBuffer src) throws IOException
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
getWriteBuffer
public final ByteBuffer getWriteBuffer()
- Specified by:
getWriteBufferin interfaceBufferedOutputStream
-
close
public final void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
flush
public final void flush() throws IOException- Specified by:
flushin interfaceBufferedOutputStream- Throws:
IOException
-
-