net.vz.mongodb.jackson.internal.stream
Class OutputBufferOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by net.vz.mongodb.jackson.internal.stream.OutputBufferOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class OutputBufferOutputStream
extends OutputStream

OutputStream that writes to a MongoDB OutputBuffer


Constructor Summary
OutputBufferOutputStream(org.bson.io.OutputBuffer outputBuffer)
           
 
Method Summary
 int getCount()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputBufferOutputStream

public OutputBufferOutputStream(org.bson.io.OutputBuffer outputBuffer)
Method Detail

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

getCount

public int getCount()


Copyright © 2011-2012 VZ Netzwerke. All Rights Reserved.