A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mongodb.github.io/mongo-java-driver/5.5/apidocs/bson/org/bson/AbstractBsonReader.html below:

AbstractBsonReader (bson 5.5.0 API)

  • getCurrentBsonType
    Specified by:
    getCurrentBsonType in interface BsonReader
    Returns:
    The current BsonType.
  • getCurrentName public String getCurrentName

    ()

    Gets the most recently read name.

    Specified by:
    getCurrentName in interface BsonReader
    Returns:
    the most recently read name
  • setCurrentBsonType protected void setCurrentBsonType(BsonType newType)

    Sets the type of the current value being read.

    Parameters:
    newType - the BSON Type.
  • getState
    Returns:
    The current state of the reader.
  • setState

    Sets the new current state of this reader.

    Parameters:
    newState - the state to set this reader to.
  • setCurrentName protected void setCurrentName(String newName)

    Sets the field name for the key/value pair being read.

    Parameters:
    newName - the field name
  • close

    public void close()

    Closes the reader.

    Specified by:
    close in interface AutoCloseable
    Specified by:
    close in interface BsonReader
    Specified by:
    close in interface Closeable
  • isClosed

    protected boolean isClosed()

    Return true if the reader has been closed.

    Returns:
    true if closed
  • doReadBinaryData

    Handles the logic to read binary data

    Returns:
    the BsonBinary value
  • doPeekBinarySubType

    protected abstract byte doPeekBinarySubType()

    Handles the logic to peek at the binary subtype.

    Returns:
    the binary subtype
  • doPeekBinarySize

    protected abstract int doPeekBinarySize()

    Handles the logic to peek at the binary size.

    Returns:
    the binary size
    Since:
    3.4
  • doReadBoolean

    protected abstract boolean doReadBoolean()

    Handles the logic to read booleans

    Returns:
    the boolean value
  • doReadDateTime

    protected abstract long doReadDateTime()

    Handles the logic to read date time

    Returns:
    the long value
  • doReadDouble

    protected abstract double doReadDouble()

    Handles the logic to read doubles

    Returns:
    the double value
  • doReadEndArray

    protected abstract void doReadEndArray()

    Handles the logic when reading the end of an array

  • doReadEndDocument

    protected abstract void doReadEndDocument()

    Handles the logic when reading the end of a document

  • doReadInt32

    protected abstract int doReadInt32()

    Handles the logic to read 32 bit ints

    Returns:
    the int value
  • doReadInt64

    protected abstract long doReadInt64()

    Handles the logic to read 64 bit ints

    Returns:
    the long value
  • doReadDecimal128

    Handles the logic to read Decimal128

    Returns:
    the Decimal128 value
    Since:
    3.4
  • doReadJavaScript protected abstract String doReadJavaScript

    ()

    Handles the logic to read JavaScript functions

    Returns:
    the String value
  • doReadJavaScriptWithScope protected abstract String doReadJavaScriptWithScope

    ()

    Handles the logic to read scoped JavaScript functions

    Returns:
    the String value
  • doReadMaxKey

    protected abstract void doReadMaxKey()

    Handles the logic to read a Max key

  • doReadMinKey

    protected abstract void doReadMinKey()

    Handles the logic to read a Min key

  • doReadNull

    protected abstract void doReadNull()

    Handles the logic to read a null value

  • doReadObjectId protected abstract ObjectId doReadObjectId

    ()

    Handles the logic to read an ObjectId

    Returns:
    the ObjectId value
  • doReadRegularExpression

    Handles the logic to read a regular expression

    Returns:
    the BsonRegularExpression value
  • doReadDBPointer

    Handles the logic to read a DBPointer

    Returns:
    the BsonDbPointer value
  • doReadStartArray

    protected abstract void doReadStartArray()

    Handles the logic to read the start of an array

  • doReadStartDocument

    protected abstract void doReadStartDocument()

    Handles the logic to read the start of a document

  • doReadString protected abstract String doReadString

    ()

    Handles the logic to read a String

    Returns:
    the String value
  • doReadSymbol protected abstract String doReadSymbol

    ()

    Handles the logic to read a Symbol

    Returns:
    the String value
  • doReadTimestamp

    Handles the logic to read a timestamp

    Returns:
    the BsonTimestamp value
  • doReadUndefined

    protected abstract void doReadUndefined()

    Handles the logic to read an Undefined value

  • doSkipName

    protected abstract void doSkipName()

    Handles any logic required to skip the name (reader must be positioned on a name).

  • doSkipValue

    protected abstract void doSkipValue()

    Handles any logic required to skip the value (reader must be positioned on a value).

  • readBinaryData

    Reads BSON Binary data from the reader.

    Specified by:
    readBinaryData in interface BsonReader
    Returns:
    A Binary.
  • peekBinarySubType

    public byte peekBinarySubType()

    Peeks the subtype of the binary data that the reader is positioned at. This operation is not permitted if the mark is already set.

    Specified by:
    peekBinarySubType in interface BsonReader
    Returns:
    the subtype
    See Also:
  • peekBinarySize

    public int peekBinarySize()

    Peeks the size of the binary data that the reader is positioned at. This operation is not permitted if the mark is already set.

    Specified by:
    peekBinarySize in interface BsonReader
    Returns:
    the size of the binary data
    See Also:
  • readBoolean

    public boolean readBoolean()

    Reads a BSON Boolean from the reader.

    Specified by:
    readBoolean in interface BsonReader
    Returns:
    A Boolean.
  • readBsonType public abstract BsonType readBsonType

    ()

    Reads a BSONType from the reader.

    Specified by:
    readBsonType in interface BsonReader
    Returns:
    A BSONType.
  • readDateTime

    public long readDateTime()

    Reads a BSON DateTime from the reader.

    Specified by:
    readDateTime in interface BsonReader
    Returns:
    The number of milliseconds since the Unix epoch.
  • readDouble

    public double readDouble()

    Reads a BSON Double from the reader.

    Specified by:
    readDouble in interface BsonReader
    Returns:
    A Double.
  • readEndArray

    public void readEndArray()

    Reads the end of a BSON array from the reader.

    Specified by:
    readEndArray in interface BsonReader
  • readEndDocument

    public void readEndDocument()

    Reads the end of a BSON document from the reader.

    Specified by:
    readEndDocument in interface BsonReader
  • readInt32

    public int readInt32()

    Reads a BSON Int32 from the reader.

    Specified by:
    readInt32 in interface BsonReader
    Returns:
    An Int32.
  • readInt64

    public long readInt64()

    Reads a BSON Int64 from the reader.

    Specified by:
    readInt64 in interface BsonReader
    Returns:
    An Int64.
  • readDecimal128

    Reads a BSON Decimal128 from the reader.

    Specified by:
    readDecimal128 in interface BsonReader
    Returns:
    A Decimal128
  • readJavaScript public String readJavaScript

    ()

    Reads a BSON JavaScript from the reader.

    Specified by:
    readJavaScript in interface BsonReader
    Returns:
    A string.
  • readJavaScriptWithScope public String readJavaScriptWithScope

    ()

    Reads a BSON JavaScript with scope from the reader (call readStartDocument next to read the scope).

    Specified by:
    readJavaScriptWithScope in interface BsonReader
    Returns:
    A string.
  • readMaxKey

    public void readMaxKey()

    Reads a BSON MaxKey from the reader.

    Specified by:
    readMaxKey in interface BsonReader
  • readMinKey

    public void readMinKey()

    Reads a BSON MinKey from the reader.

    Specified by:
    readMinKey in interface BsonReader
  • readNull

    public void readNull()

    Reads a BSON null from the reader.

    Specified by:
    readNull in interface BsonReader
  • readObjectId

    Reads a BSON ObjectId from the reader.

    Specified by:
    readObjectId in interface BsonReader
    Returns:
    the ObjectId value
  • readRegularExpression

    Reads a BSON regular expression from the reader.

    Specified by:
    readRegularExpression in interface BsonReader
    Returns:
    A regular expression.
  • readDBPointer

    Reads a BSON DBPointer from the reader.

    Specified by:
    readDBPointer in interface BsonReader
    Returns:
    A DBPointer.
  • readStartArray

    public void readStartArray()

    Reads the start of a BSON array.

    Specified by:
    readStartArray in interface BsonReader
  • readStartDocument

    public void readStartDocument()

    Reads the start of a BSON document.

    Specified by:
    readStartDocument in interface BsonReader
  • readString

    Reads a BSON String from the reader.

    Specified by:
    readString in interface BsonReader
    Returns:
    A String.
  • readSymbol

    Reads a BSON symbol from the reader.

    Specified by:
    readSymbol in interface BsonReader
    Returns:
    A string.
  • readTimestamp

    Reads a BSON timestamp from the reader.

    Specified by:
    readTimestamp in interface BsonReader
    Returns:
    The combined timestamp/increment.
  • readUndefined

    public void readUndefined()

    Reads a BSON undefined from the reader.

    Specified by:
    readUndefined in interface BsonReader
  • skipName

    public void skipName()

    Skips the name (reader must be positioned on a name).

    Specified by:
    skipName in interface BsonReader
  • skipValue

    public void skipValue()

    Skips the value (reader must be positioned on a value).

    Specified by:
    skipValue in interface BsonReader
  • readBinaryData

    Reads a BSON Binary data element from the reader.

    Specified by:
    readBinaryData in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    A Binary.
  • readBoolean public boolean readBoolean(String name)

    Reads a BSON Boolean element from the reader.

    Specified by:
    readBoolean in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    A Boolean.
  • readDateTime public long readDateTime(String name)

    Reads a BSON DateTime element from the reader.

    Specified by:
    readDateTime in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    The number of milliseconds since the Unix epoch.
  • readDouble public double readDouble(String name)

    Reads a BSON Double element from the reader.

    Specified by:
    readDouble in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    A Double.
  • readInt32 public int readInt32(String name)

    Reads a BSON Int32 element from the reader.

    Specified by:
    readInt32 in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    An Int32.
  • readInt64 public long readInt64(String name)

    Reads a BSON Int64 element from the reader.

    Specified by:
    readInt64 in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    An Int64.
  • readDecimal128

    Reads a BSON Decimal128 element from the reader.

    Specified by:
    readDecimal128 in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    A Decimal128
  • readJavaScript

    Reads a BSON JavaScript element from the reader.

    Specified by:
    readJavaScript in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    A string.
  • readJavaScriptWithScope

    Reads a BSON JavaScript with scope element from the reader (call readStartDocument next to read the scope).

    Specified by:
    readJavaScriptWithScope in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    A string.
  • readMaxKey public void readMaxKey(String name)

    Reads a BSON MaxKey element from the reader.

    Specified by:
    readMaxKey in interface BsonReader
    Parameters:
    name - The name of the element.
  • readMinKey public void readMinKey(String name)

    Reads a BSON MinKey element from the reader.

    Specified by:
    readMinKey in interface BsonReader
    Parameters:
    name - The name of the element.
  • readName

    Reads the name of an element from the reader.

    Specified by:
    readName in interface BsonReader
    Returns:
    The name of the element.
  • readName public void readName(String name)

    Reads the name of an element from the reader.

    Specified by:
    readName in interface BsonReader
    Parameters:
    name - The name of the element.
  • readNull public void readNull(String name)

    Reads a BSON null element from the reader.

    Specified by:
    readNull in interface BsonReader
    Parameters:
    name - The name of the element.
  • readObjectId

    Reads a BSON ObjectId element from the reader.

    Specified by:
    readObjectId in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    ObjectId.
  • readRegularExpression

    Reads a BSON regular expression element from the reader.

    Specified by:
    readRegularExpression in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    A regular expression.
  • readDBPointer

    Reads a BSON DBPointer element from the reader.

    Specified by:
    readDBPointer in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    A DBPointer.
  • readString

    Reads a BSON string element from the reader.

    Specified by:
    readString in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    A String.
  • readSymbol

    Reads a BSON symbol element from the reader.

    Specified by:
    readSymbol in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    A string.
  • readTimestamp

    Reads a BSON timestamp element from the reader.

    Specified by:
    readTimestamp in interface BsonReader
    Parameters:
    name - The name of the element.
    Returns:
    The combined timestamp/increment.
  • readUndefined public void readUndefined(String name)

    Reads a BSON undefined element from the reader.

    Specified by:
    readUndefined in interface BsonReader
    Parameters:
    name - The name of the element.
  • throwInvalidContextType

    Throws an InvalidOperationException when the method called is not valid for the current ContextType.

    Parameters:
    methodName - The name of the method.
    actualContextType - The actual ContextType.
    validContextTypes - The valid ContextTypes.
    Throws:
    BsonInvalidOperationException - when the method called is not valid for the current ContextType.
  • throwInvalidState

    Throws an InvalidOperationException when the method called is not valid for the current state.

    Parameters:
    methodName - The name of the method.
    validStates - The valid states.
    Throws:
    BsonInvalidOperationException - when the method called is not valid for the current state.
  • verifyBSONType protected void verifyBSONType(String methodName, BsonType requiredBsonType)

    Verifies the current state and BSONType of the reader.

    Parameters:
    methodName - The name of the method calling this one.
    requiredBsonType - The required BSON type.
  • verifyName protected void verifyName(String expectedName)

    Verifies the name of the current element.

    Parameters:
    expectedName - The expected name.
    Throws:
    BsonSerializationException - when the name read is not the expected name
  • checkPreconditions

    Ensures any conditions are met before reading commences. Throws exceptions if the conditions are not met.

    Parameters:
    methodName - the name of the current method, which will indicate the field being read
    type - the type of this field
  • getContext

    Get the context, which will indicate which state the reader is in, for example which part of a document it's currently reading.

    Returns:
    the context
  • setContext

    Set the context, which will indicate which state the reader is in, for example which part of a document it's currently reading.

    Parameters:
    context - the current context.
  • getNextState
    Returns:
    the next state

  • 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