public abstract class AbstractBsonReader extends java.lang.Object implements BsonReader
Modifier and Type | Class and Description |
---|---|
static class |
AbstractBsonReader.State
The state of a reader.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader.
|
BsonType |
getCurrentBsonType() |
java.lang.String |
getCurrentName()
Gets the most recently read name.
|
AbstractBsonReader.State |
getState() |
int |
peekBinarySize()
Peeks the size of the binary data that the reader is positioned at.
|
byte |
peekBinarySubType()
Peeks the subtype of the binary data that the reader is positioned at.
|
BsonBinary |
readBinaryData()
Reads BSON Binary data from the reader.
|
BsonBinary |
readBinaryData(java.lang.String name)
Reads a BSON Binary data element from the reader.
|
boolean |
readBoolean()
Reads a BSON Boolean from the reader.
|
boolean |
readBoolean(java.lang.String name)
Reads a BSON Boolean element from the reader.
|
abstract BsonType |
readBsonType()
Reads a BSONType from the reader.
|
long |
readDateTime()
Reads a BSON DateTime from the reader.
|
long |
readDateTime(java.lang.String name)
Reads a BSON DateTime element from the reader.
|
BsonDbPointer |
readDBPointer()
Reads a BSON DBPointer from the reader.
|
BsonDbPointer |
readDBPointer(java.lang.String name)
Reads a BSON DBPointer element from the reader.
|
Decimal128 |
readDecimal128()
Reads a BSON Decimal128 from the reader.
|
Decimal128 |
readDecimal128(java.lang.String name)
Reads a BSON Decimal128 element from the reader.
|
double |
readDouble()
Reads a BSON Double from the reader.
|
double |
readDouble(java.lang.String name)
Reads a BSON Double element from the reader.
|
void |
readEndArray()
Reads the end of a BSON array from the reader.
|
void |
readEndDocument()
Reads the end of a BSON document from the reader.
|
int |
readInt32()
Reads a BSON Int32 from the reader.
|
int |
readInt32(java.lang.String name)
Reads a BSON Int32 element from the reader.
|
long |
readInt64()
Reads a BSON Int64 from the reader.
|
long |
readInt64(java.lang.String name)
Reads a BSON Int64 element from the reader.
|
java.lang.String |
readJavaScript()
Reads a BSON JavaScript from the reader.
|
java.lang.String |
readJavaScript(java.lang.String name)
Reads a BSON JavaScript element from the reader.
|
java.lang.String |
readJavaScriptWithScope()
Reads a BSON JavaScript with scope from the reader (call readStartDocument next to read the scope).
|
java.lang.String |
readJavaScriptWithScope(java.lang.String name)
Reads a BSON JavaScript with scope element from the reader (call readStartDocument next to read the scope).
|
void |
readMaxKey()
Reads a BSON MaxKey from the reader.
|
void |
readMaxKey(java.lang.String name)
Reads a BSON MaxKey element from the reader.
|
void |
readMinKey()
Reads a BSON MinKey from the reader.
|
void |
readMinKey(java.lang.String name)
Reads a BSON MinKey element from the reader.
|
java.lang.String |
readName()
Reads the name of an element from the reader.
|
void |
readName(java.lang.String name)
Reads the name of an element from the reader.
|
void |
readNull()
Reads a BSON null from the reader.
|
void |
readNull(java.lang.String name)
Reads a BSON null element from the reader.
|
ObjectId |
readObjectId()
Reads a BSON ObjectId from the reader.
|
ObjectId |
readObjectId(java.lang.String name)
Reads a BSON ObjectId element from the reader.
|
BsonRegularExpression |
readRegularExpression()
Reads a BSON regular expression from the reader.
|
BsonRegularExpression |
readRegularExpression(java.lang.String name)
Reads a BSON regular expression element from the reader.
|
void |
readStartArray()
Reads the start of a BSON array.
|
void |
readStartDocument()
Reads the start of a BSON document.
|
java.lang.String |
readString()
Reads a BSON String from the reader.
|
java.lang.String |
readString(java.lang.String name)
Reads a BSON string element from the reader.
|
java.lang.String |
readSymbol()
Reads a BSON symbol from the reader.
|
java.lang.String |
readSymbol(java.lang.String name)
Reads a BSON symbol element from the reader.
|
BsonTimestamp |
readTimestamp()
Reads a BSON timestamp from the reader.
|
BsonTimestamp |
readTimestamp(java.lang.String name)
Reads a BSON timestamp element from the reader.
|
void |
readUndefined()
Reads a BSON undefined from the reader.
|
void |
readUndefined(java.lang.String name)
Reads a BSON undefined element from the reader.
|
void |
skipName()
Skips the name (reader must be positioned on a name).
|
void |
skipValue()
Skips the value (reader must be positioned on a value).
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMark, mark, reset
public BsonType getCurrentBsonType()
getCurrentBsonType
in interface BsonReader
public java.lang.String getCurrentName()
BsonReader
getCurrentName
in interface BsonReader
public AbstractBsonReader.State getState()
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface BsonReader
public BsonBinary readBinaryData()
BsonReader
readBinaryData
in interface BsonReader
public byte peekBinarySubType()
BsonReader
peekBinarySubType
in interface BsonReader
BsonReader.mark()
public int peekBinarySize()
BsonReader
peekBinarySize
in interface BsonReader
BsonReader.mark()
public boolean readBoolean()
BsonReader
readBoolean
in interface BsonReader
public abstract BsonType readBsonType()
BsonReader
readBsonType
in interface BsonReader
public long readDateTime()
BsonReader
readDateTime
in interface BsonReader
public double readDouble()
BsonReader
readDouble
in interface BsonReader
public void readEndArray()
BsonReader
readEndArray
in interface BsonReader
public void readEndDocument()
BsonReader
readEndDocument
in interface BsonReader
public int readInt32()
BsonReader
readInt32
in interface BsonReader
public long readInt64()
BsonReader
readInt64
in interface BsonReader
public Decimal128 readDecimal128()
BsonReader
readDecimal128
in interface BsonReader
public java.lang.String readJavaScript()
BsonReader
readJavaScript
in interface BsonReader
public java.lang.String readJavaScriptWithScope()
BsonReader
readJavaScriptWithScope
in interface BsonReader
public void readMaxKey()
BsonReader
readMaxKey
in interface BsonReader
public void readMinKey()
BsonReader
readMinKey
in interface BsonReader
public void readNull()
BsonReader
readNull
in interface BsonReader
public ObjectId readObjectId()
BsonReader
readObjectId
in interface BsonReader
ObjectId
valuepublic BsonRegularExpression readRegularExpression()
BsonReader
readRegularExpression
in interface BsonReader
public BsonDbPointer readDBPointer()
BsonReader
readDBPointer
in interface BsonReader
public void readStartArray()
BsonReader
readStartArray
in interface BsonReader
public void readStartDocument()
BsonReader
readStartDocument
in interface BsonReader
public java.lang.String readString()
BsonReader
readString
in interface BsonReader
public java.lang.String readSymbol()
BsonReader
readSymbol
in interface BsonReader
public BsonTimestamp readTimestamp()
BsonReader
readTimestamp
in interface BsonReader
public void readUndefined()
BsonReader
readUndefined
in interface BsonReader
public void skipName()
BsonReader
skipName
in interface BsonReader
public void skipValue()
BsonReader
skipValue
in interface BsonReader
public BsonBinary readBinaryData(java.lang.String name)
BsonReader
readBinaryData
in interface BsonReader
name
- The name of the element.public boolean readBoolean(java.lang.String name)
BsonReader
readBoolean
in interface BsonReader
name
- The name of the element.public long readDateTime(java.lang.String name)
BsonReader
readDateTime
in interface BsonReader
name
- The name of the element.public double readDouble(java.lang.String name)
BsonReader
readDouble
in interface BsonReader
name
- The name of the element.public int readInt32(java.lang.String name)
BsonReader
readInt32
in interface BsonReader
name
- The name of the element.public long readInt64(java.lang.String name)
BsonReader
readInt64
in interface BsonReader
name
- The name of the element.public Decimal128 readDecimal128(java.lang.String name)
BsonReader
readDecimal128
in interface BsonReader
name
- The name of the element.public java.lang.String readJavaScript(java.lang.String name)
BsonReader
readJavaScript
in interface BsonReader
name
- The name of the element.public java.lang.String readJavaScriptWithScope(java.lang.String name)
BsonReader
readJavaScriptWithScope
in interface BsonReader
name
- The name of the element.public void readMaxKey(java.lang.String name)
BsonReader
readMaxKey
in interface BsonReader
name
- The name of the element.public void readMinKey(java.lang.String name)
BsonReader
readMinKey
in interface BsonReader
name
- The name of the element.public java.lang.String readName()
BsonReader
readName
in interface BsonReader
public void readName(java.lang.String name)
BsonReader
readName
in interface BsonReader
name
- The name of the element.public void readNull(java.lang.String name)
BsonReader
readNull
in interface BsonReader
name
- The name of the element.public ObjectId readObjectId(java.lang.String name)
BsonReader
readObjectId
in interface BsonReader
name
- The name of the element.public BsonRegularExpression readRegularExpression(java.lang.String name)
BsonReader
readRegularExpression
in interface BsonReader
name
- The name of the element.public BsonDbPointer readDBPointer(java.lang.String name)
BsonReader
readDBPointer
in interface BsonReader
name
- The name of the element.public java.lang.String readString(java.lang.String name)
BsonReader
readString
in interface BsonReader
name
- The name of the element.public java.lang.String readSymbol(java.lang.String name)
BsonReader
readSymbol
in interface BsonReader
name
- The name of the element.public BsonTimestamp readTimestamp(java.lang.String name)
BsonReader
readTimestamp
in interface BsonReader
name
- The name of the element.public void readUndefined(java.lang.String name)
BsonReader
readUndefined
in interface BsonReader
name
- The name of the element.Copyright © 2010 - 2020 Adobe. All Rights Reserved