public class BufferingBsonOutputStream extends FilterOutputStream
BufferingBsonOutputStream
provides a class to write BSON documents
based on the BSON specification.out
Constructor and Description |
---|
BufferingBsonOutputStream(OutputStream output)
Creates a new
BufferingBsonOutputStream . |
BufferingBsonOutputStream(RandomAccessOutputStream output)
Creates a new
BufferingBsonOutputStream . |
public BufferingBsonOutputStream(OutputStream output)
BufferingBsonOutputStream
.output
- The stream to write to.public BufferingBsonOutputStream(RandomAccessOutputStream output)
BufferingBsonOutputStream
.output
- The stream to write to.public long write(Document doc) throws IOException
doc
- The document to write.IOException
- On a failure to write to the underlying document.Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.