Closeable
, AutoCloseable
, BsonReader
A BsonReader implementation that reads from a binary stream of data. This is the most commonly used implementation.
Nested Classes
protected class
An implementation of AbstractBsonReader.Context
.
protected class
An implementation of AbstractBsonReader.Mark
.
Constructors
void
protected int
Handles the logic to peek at the binary size.
protected byte
Handles the logic to peek at the binary subtype.
Handles the logic to read binary data
protected boolean
Handles the logic to read booleans
protected long
Handles the logic to read date time
Handles the logic to read a DBPointer
Handles the logic to read Decimal128
protected double
Handles the logic to read doubles
protected void
Handles the logic when reading the end of an array
protected void
Handles the logic when reading the end of a document
protected int
Handles the logic to read 32 bit ints
protected long
Handles the logic to read 64 bit ints
Handles the logic to read JavaScript functions
Handles the logic to read scoped JavaScript functions
protected void
Handles the logic to read a Max key
protected void
Handles the logic to read a Min key
protected void
Handles the logic to read a null value
Handles the logic to read an ObjectId
Handles the logic to read a regular expression
void
Handles the logic to read the start of an array
protected void
Handles the logic to read the start of a document
Handles the logic to read a String
Handles the logic to read a Symbol
Handles the logic to read a timestamp
protected void
Handles the logic to read an Undefined value
protected void
Handles any logic required to skip the name (reader must be positioned on a name).
protected void
Handles any logic required to skip the value (reader must be positioned on a value).
Gets the BSON input backing this instance.
Get the context, which will indicate which state the reader is in, for example which part of a document it's currently reading.
Gets a mark representing the current state of the reader.
Reads a BSONType from the reader.
Methods inherited from class org.bson.AbstractBsonReadercheckPreconditions, getCurrentBsonType, getCurrentName, getNextState, getState, isClosed, peekBinarySize, peekBinarySubType, readBinaryData, readBinaryData, readBoolean, readBoolean, readDateTime, readDateTime, readDBPointer, readDBPointer, readDecimal128, readDecimal128, readDouble, readDouble, readEndArray, readEndDocument, readInt32, readInt32, readInt64, readInt64, readJavaScript, readJavaScript, readJavaScriptWithScope, readJavaScriptWithScope, readMaxKey, readMaxKey, readMinKey, readMinKey, readName, readName, readNull, readNull, readObjectId, readObjectId, readRegularExpression, readRegularExpression, readStartArray, readStartDocument, readString, readString, readSymbol, readSymbol, readTimestamp, readTimestamp, readUndefined, readUndefined, setContext, setCurrentBsonType, setCurrentName, setState, skipName, skipValue, throwInvalidContextType, throwInvalidState, verifyBSONType, verifyName
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Construct an instance.
byteBuffer
- the input for this reader
Construct an instance.
bsonInput
- the input for this reader
public void close()
Closes the reader.
close
in interface AutoCloseable
close
in interface BsonReader
close
in interface Closeable
close
in class AbstractBsonReader
Gets the BSON input backing this instance.
Reads a BSONType from the reader.
readBsonType
in interface BsonReader
readBsonType
in class AbstractBsonReader
Handles the logic to read binary data
doReadBinaryData
in class AbstractBsonReader
protected byte doPeekBinarySubType()
Handles the logic to peek at the binary subtype.
doPeekBinarySubType
in class AbstractBsonReader
protected int doPeekBinarySize()
Handles the logic to peek at the binary size.
doPeekBinarySize
in class AbstractBsonReader
protected boolean doReadBoolean()
Handles the logic to read booleans
doReadBoolean
in class AbstractBsonReader
protected long doReadDateTime()
Handles the logic to read date time
doReadDateTime
in class AbstractBsonReader
protected double doReadDouble()
Handles the logic to read doubles
doReadDouble
in class AbstractBsonReader
protected int doReadInt32()
Handles the logic to read 32 bit ints
doReadInt32
in class AbstractBsonReader
protected long doReadInt64()
Handles the logic to read 64 bit ints
doReadInt64
in class AbstractBsonReader
Handles the logic to read Decimal128
doReadDecimal128
in class AbstractBsonReader
()
Handles the logic to read JavaScript functions
doReadJavaScript
in class AbstractBsonReader
()
Handles the logic to read scoped JavaScript functions
doReadJavaScriptWithScope
in class AbstractBsonReader
protected void doReadMaxKey()
Handles the logic to read a Max key
doReadMaxKey
in class AbstractBsonReader
protected void doReadMinKey()
Handles the logic to read a Min key
doReadMinKey
in class AbstractBsonReader
protected void doReadNull()
Handles the logic to read a null value
doReadNull
in class AbstractBsonReader
Handles the logic to read an ObjectId
doReadObjectId
in class AbstractBsonReader
Handles the logic to read a regular expression
doReadRegularExpression
in class AbstractBsonReader
Handles the logic to read a DBPointer
doReadDBPointer
in class AbstractBsonReader
()
Handles the logic to read a String
doReadString
in class AbstractBsonReader
()
Handles the logic to read a Symbol
doReadSymbol
in class AbstractBsonReader
Handles the logic to read a timestamp
doReadTimestamp
in class AbstractBsonReader
protected void doReadUndefined()
Handles the logic to read an Undefined value
doReadUndefined
in class AbstractBsonReader
public void doReadStartArray()
Handles the logic to read the start of an array
doReadStartArray
in class AbstractBsonReader
protected void doReadStartDocument()
Handles the logic to read the start of a document
doReadStartDocument
in class AbstractBsonReader
protected void doReadEndArray()
Handles the logic when reading the end of an array
doReadEndArray
in class AbstractBsonReader
protected void doReadEndDocument()
Handles the logic when reading the end of a document
doReadEndDocument
in class AbstractBsonReader
protected void doSkipName()
Handles any logic required to skip the name (reader must be positioned on a name).
doSkipName
in class AbstractBsonReader
protected void doSkipValue()
Handles any logic required to skip the value (reader must be positioned on a value).
doSkipValue
in class AbstractBsonReader
Get the context, which will indicate which state the reader is in, for example which part of a document it's currently reading.
getContext
in class AbstractBsonReader
Gets a mark representing the current state of the reader.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4