@ThreadSafe public class BsonReader extends Object
Document
representation.Modifier and Type | Class and Description |
---|---|
protected static class |
BsonReader.Reader |
Modifier and Type | Field and Description |
---|---|
protected static DocumentValueFactory |
VALUE_FACTORY |
Constructor and Description |
---|
BsonReader() |
Modifier and Type | Method and Description |
---|---|
Document |
read(DataInput input)
Read the binary BSON representation from supplied input stream and construct the
Document representation. |
Document |
read(InputStream stream)
Read the binary BSON representation from supplied input stream and construct the
Document representation. |
Array |
readArray(DataInput input)
Read the binary BSON representation from supplied input stream and construct the
Document representation. |
Array |
readArray(InputStream stream)
Read the binary BSON representation from supplied input stream and construct the
Array representation. |
protected static final DocumentValueFactory VALUE_FACTORY
public Document read(InputStream stream) throws IOException
Document
representation.stream
- the input stream; may not be nullDocument
representationIOException
- if there was a problem reading from the streampublic Document read(DataInput input) throws IOException
Document
representation.input
- the input stream; may not be nullDocument
representationIOException
- if there was a problem reading from the streampublic Array readArray(InputStream stream) throws IOException
Array
representation.stream
- the input stream; may not be nullDocument
representationIOException
- if there was a problem reading from the streampublic Array readArray(DataInput input) throws IOException
Document
representation.input
- the input stream; may not be nullDocument
representationIOException
- if there was a problem reading from the streamCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.