Package org.mongojack.internal.stream
Class OutputBufferOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.mongojack.internal.stream.OutputBufferOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class OutputBufferOutputStream extends OutputStream
OutputStream that writes to a MongoDB OutputBuffer
-
-
Constructor Summary
Constructors Constructor Description OutputBufferOutputStream(org.bson.io.OutputBuffer outputBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
void
write(byte[] b, int off, int len)
void
write(int b)
-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
-
-
-
Method Detail
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
getCount
public int getCount()
-
-