Skip navigation links
A B C D E F G H I K L M N O P R S T U W _ 

A

add(Object) - Method in class org.bson.LazyBSONList
 
add(int, Object) - Method in class org.bson.LazyBSONList
 
add(String) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
add(String) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
addAll(Collection) - Method in class org.bson.LazyBSONList
 
addAll(int, Collection) - Method in class org.bson.LazyBSONList
 
addAll(Collection<? extends String>) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
addDecodingHook(Class, Transformer) - Static method in class org.bson.BSON
Registers a Transformer to use when decoding a specific class from BSON.
addEncodingHook(Class, Transformer) - Static method in class org.bson.BSON
Registers a Transformer to use to encode a specific class into BSON.
append(String, Object) - Method in class org.bson.BasicBSONObject
Add a key/value pair to this object
applyDecodingHooks(Object) - Static method in class org.bson.BSON
Transforms the objectToDecode using all transformers registered for the class of this object.
applyEncodingHooks(Object) - Static method in class org.bson.BSON
Transforms the objectToEncode using all transformers registered for the class of this object.
ARRAY - Static variable in class org.bson.BSON
 
array() - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
arrayDone() - Method in class org.bson.BasicBSONCallback
 
arrayDone() - Method in interface org.bson.BSONCallback
Called the end of the array, and returns the completed array.
arrayDone() - Method in class org.bson.EmptyBSONCallback
 
arrayStart() - Method in class org.bson.BasicBSONCallback
 
arrayStart(String) - Method in class org.bson.BasicBSONCallback
 
arrayStart() - Method in interface org.bson.BSONCallback
Signals the start of a BSON array.
arrayStart(String) - Method in interface org.bson.BSONCallback
Signals the start of a BSON array, with its field name.
arrayStart() - Method in class org.bson.EmptyBSONCallback
 
arrayStart(String) - Method in class org.bson.EmptyBSONCallback
 
asAscii() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
Assertions - Class in org.bson.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
asString() - Method in class org.bson.io.BasicOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
asString(String) - Method in class org.bson.io.BasicOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
asString() - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
asString(String) - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
asString(String) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.

B

B_BINARY - Static variable in class org.bson.BSON
 
B_FUNC - Static variable in class org.bson.BSON
 
B_GENERAL - Static variable in class org.bson.BSON
 
B_UUID - Static variable in class org.bson.BSON
 
babbleToMongod(String) - Static method in class org.bson.types.ObjectId
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
backpatchSize(int) - Method in class org.bson.io.OutputBuffer
Backpatches the size of a document or string by writing the size into the four bytes starting at getPosition() - size.
backpatchSize(int, int) - Method in class org.bson.io.OutputBuffer
Backpatches the size of a document or string by writing the size into the four bytes starting at getPosition() - size - additionalOffset.
BasicBSONCallback - Class in org.bson
An implementation of BsonCallback that creates an instance of BSONObject.
BasicBSONCallback() - Constructor for class org.bson.BasicBSONCallback
Creates a new instance.
BasicBSONDecoder - Class in org.bson
Basic implementation of BSONDecoder interface that creates BasicBSONObject instances
BasicBSONDecoder() - Constructor for class org.bson.BasicBSONDecoder
 
BasicBSONDecoder.BSONInput - Class in org.bson
Deprecated.
This class should not be a part of API. Please see the class-level documentation for a migration instructions.
BasicBSONEncoder - Class in org.bson
This is meant to be pooled or cached.
BasicBSONEncoder() - Constructor for class org.bson.BasicBSONEncoder
 
BasicBSONList - Class in org.bson.types
Utility class to allow array DBObjects to be created.
BasicBSONList() - Constructor for class org.bson.types.BasicBSONList
 
BasicBSONObject - Class in org.bson
A simple implementation of DBObject.
BasicBSONObject() - Constructor for class org.bson.BasicBSONObject
Creates an empty object.
BasicBSONObject(int) - Constructor for class org.bson.BasicBSONObject
Creates an empty object.
BasicBSONObject(String, Object) - Constructor for class org.bson.BasicBSONObject
Creates a BSONObject initialised with a single key/value pair.
BasicBSONObject(Map) - Constructor for class org.bson.BasicBSONObject
Creates a DBObject from a map.
BasicOutputBuffer - Class in org.bson.io
A BSON output stream that stores the output in a single, un-pooled byte array.
BasicOutputBuffer() - Constructor for class org.bson.io.BasicOutputBuffer
 
BINARY - Static variable in class org.bson.BSON
 
Binary - Class in org.bson.types
Generic binary holder.
Binary(byte[]) - Constructor for class org.bson.types.Binary
Creates a Binary object with the default binary type of 0
Binary(byte, byte[]) - Constructor for class org.bson.types.Binary
Creates a Binary with the specified type and data.
Bits - Class in org.bson.io
Utility class for reading values from an input stream.
Bits() - Constructor for class org.bson.io.Bits
 
BOOLEAN - Static variable in class org.bson.BSON
 
BSON - Class in org.bson
Contains byte representations of all the BSON types (see the BSON Specification).
BSON() - Constructor for class org.bson.BSON
 
BSONByteBuffer - Class in org.bson.io
Deprecated.
use a simple byte array array instead, all of the classes that take a BSONByteBuffer also take a byte[]
BSONCallback - Interface in org.bson
A callback interface for describing the structure of a BSON document.
BSONDecoder - Interface in org.bson
An interface for decoders of BSON documents.
BSONEncoder - Interface in org.bson
A BSONEncoder is a class which can be used to turn documents into byte arrays.
BSONException - Exception in org.bson
A general runtime exception raised in BSON processing.
BSONException(String) - Constructor for exception org.bson.BSONException
 
BSONException(int, String) - Constructor for exception org.bson.BSONException
 
BSONException(String, Throwable) - Constructor for exception org.bson.BSONException
 
BSONException(int, String, Throwable) - Constructor for exception org.bson.BSONException
 
BSONInput(InputStream) - Constructor for class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
BSONLazyDecoder - Class in org.bson
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
BSONLazyDecoder() - Constructor for class org.bson.BSONLazyDecoder
Deprecated.
 
BSONObject - Interface in org.bson
A key-value map that can be saved to the database.
BSONTimestamp - Class in org.bson.types
This is used for internal increment values.
BSONTimestamp() - Constructor for class org.bson.types.BSONTimestamp
Construct a new instance with a null time and a 0 increment.
BSONTimestamp(int, int) - Constructor for class org.bson.types.BSONTimestamp
Construct a new instance for the given time and increment.
buf - Variable in class org.bson.io.BSONByteBuffer
Deprecated.
 
BUF_SIZE - Static variable in class org.bson.io.PoolOutputBuffer
Deprecated.
 

C

ClassMap<T> - Class in org.bson.util
Maps Class objects to values.
ClassMap() - Constructor for class org.bson.util.ClassMap
 
clear() - Method in class org.bson.LazyBSONList
 
clear() - Method in class org.bson.util.ClassMap
As per java.util.Map, removes all of the mappings from this map (optional operation).
clear() - Method in class org.bson.util.StringRangeSet
Deprecated.
 
clearAllHooks() - Static method in class org.bson.BSON
Remove all decoding and encoding hooks for all classes.
clearDecodingHooks() - Static method in class org.bson.BSON
Clears all decoding hooks.
clearEncodingHooks() - Static method in class org.bson.BSON
Clears all encoding hooks.
CODE - Static variable in class org.bson.BSON
 
Code - Class in org.bson.types
For using the Code type.
Code(String) - Constructor for class org.bson.types.Code
Construct a new instance with the given code.
CODE_W_SCOPE - Static variable in class org.bson.BSON
 
CodeWScope - Class in org.bson.types
A representation of the JavaScript Code with Scope BSON type.
CodeWScope(String, BSONObject) - Constructor for class org.bson.types.CodeWScope
Construct an instance.
compareTo(BSONTimestamp) - Method in class org.bson.types.BSONTimestamp
 
compareTo(ObjectId) - Method in class org.bson.types.ObjectId
 
contains(Object) - Method in class org.bson.LazyBSONList
 
contains(Object) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
contains(Object) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
containsAll(Collection) - Method in class org.bson.LazyBSONList
 
containsAll(Collection<?>) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
containsAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
containsField(String) - Method in class org.bson.BasicBSONObject
Checks if this object contains a given field
containsField(String) - Method in interface org.bson.BSONObject
Checks if this object contains a field with the given name.
containsField(String) - Method in class org.bson.KeyCachingLazyBSONObject
Deprecated.
 
containsField(String) - Method in class org.bson.LazyBSONObject
 
containsField(String) - Method in class org.bson.types.BasicBSONList
 
containsKey(String) - Method in class org.bson.BasicBSONObject
Deprecated.
containsKey(String) - Method in interface org.bson.BSONObject
Deprecated.
containsKey(String) - Method in class org.bson.LazyBSONObject
Deprecated.
containsKey(String) - Method in class org.bson.types.BasicBSONList
Deprecated.
create() - Method in class org.bson.BasicBSONCallback
Factory method for creating a new BSONObject.
create(boolean, List<String>) - Method in class org.bson.BasicBSONCallback
Helper method to create either a BSON Object or a BSON List depending upon whether the array parameter is true or not.
createArray(byte[], int) - Method in class org.bson.LazyBSONCallback
Create a LazyBSONList from the given bytes starting from the given offset.
createBSONCallback() - Method in class org.bson.BasicBSONCallback
 
createBSONCallback() - Method in interface org.bson.BSONCallback
Factory method for BSONCallbacks.
createBSONCallback() - Method in class org.bson.EmptyBSONCallback
 
createDBRef(String, ObjectId) - Method in class org.bson.LazyBSONCallback
This is a factory method pattern to create appropriate objects for BSON type DBPointer(0x0c).
createFromLegacyFormat(int, int, int) - Static method in class org.bson.types.ObjectId
Creates an ObjectId using time, machine and inc values.
createList() - Method in class org.bson.BasicBSONCallback
Factory method for creating a new BSON List.
createNew() - Method in class org.bson.util.SimplePool
Deprecated.
 
createObject(byte[], int) - Method in class org.bson.LazyBSONCallback
Create a LazyBSONObject instance from the given bytes starting from the given offset.
cur() - Method in class org.bson.BasicBSONCallback
Gets the current value
curName() - Method in class org.bson.BasicBSONCallback
Gets the name of the current field

D

DATE - Static variable in class org.bson.BSON
 
decode(byte[], BSONCallback) - Method in class org.bson.BasicBSONDecoder
 
decode(InputStream, BSONCallback) - Method in class org.bson.BasicBSONDecoder
 
decode(byte[]) - Static method in class org.bson.BSON
Decodes a BSON byte array into a DBObject instance.
decode(byte[], BSONCallback) - Method in interface org.bson.BSONDecoder
Decode a single BSON object into the given callback from the given byte array.
decode(InputStream, BSONCallback) - Method in interface org.bson.BSONDecoder
Decode a single BSON object into the given callback from the given input stream.
decode(byte[], BSONCallback) - Method in class org.bson.LazyBSONDecoder
 
decode(InputStream, BSONCallback) - Method in class org.bson.LazyBSONDecoder
 
decode(byte[], BSONCallback) - Method in class org.bson.NewBSONDecoder
Deprecated.
 
decode(InputStream, BSONCallback) - Method in class org.bson.NewBSONDecoder
Deprecated.
 
done() - Method in class org.bson.BasicBSONEncoder
 
done() - Method in interface org.bson.BSONEncoder
Free the resources.
done(T) - Method in class org.bson.util.SimplePool
Deprecated.
 

E

EmptyBSONCallback - Class in org.bson
Convenience implementation of BSONCallback that throws UnsupportedOperationException for all methods.
EmptyBSONCallback() - Constructor for class org.bson.EmptyBSONCallback
 
encode(BSONObject) - Method in class org.bson.BasicBSONEncoder
 
encode(BSONObject) - Static method in class org.bson.BSON
Encodes a DBObject as a BSON byte array.
encode(BSONObject) - Method in interface org.bson.BSONEncoder
Encode a document into byte array.
entrySet() - Method in class org.bson.LazyBSONObject
This method will be more efficient than using a combination of keySet() and get(String key)
EOO - Static variable in class org.bson.BSON
 
equals(Object) - Method in class org.bson.BasicBSONObject
Compares two documents according to their serialized form, ignoring the order of keys.
equals(Object) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
equals(Object) - Method in class org.bson.LazyBSONObject
 
equals(Object) - Method in class org.bson.types.Binary
 
equals(Object) - Method in class org.bson.types.BSONTimestamp
 
equals(Object) - Method in class org.bson.types.Code
 
equals(Object) - Method in class org.bson.types.CodeWScope
 
equals(Object) - Method in class org.bson.types.MaxKey
 
equals(Object) - Method in class org.bson.types.MinKey
 
equals(Object) - Method in class org.bson.types.ObjectId
 
equals(Object) - Method in class org.bson.types.Symbol
 

F

fill(byte[]) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
fill(byte[], int) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 

G

get() - Method in class org.bson.BasicBSONCallback
 
get(String) - Method in class org.bson.BasicBSONObject
Gets a value from this object
get() - Method in interface org.bson.BSONCallback
Returns the finished top-level Document.
get(String) - Method in interface org.bson.BSONObject
Gets a field from this object by a given name.
get() - Method in class org.bson.EmptyBSONCallback
 
get(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
get(byte[], int, int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
get(byte[]) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
get(String) - Method in class org.bson.KeyCachingLazyBSONObject
Deprecated.
 
get() - Method in class org.bson.LazyBSONCallback
 
get(int) - Method in class org.bson.LazyBSONList
 
get(String) - Method in class org.bson.LazyBSONObject
 
get(String) - Method in class org.bson.types.BasicBSONList
Gets a value at an index.
get() - Static method in class org.bson.types.ObjectId
Gets a new object id.
get(Object) - Method in class org.bson.util.ClassMap
Gets the value associated with either this Class or a superclass of this class.
get() - Method in class org.bson.util.SimplePool
Deprecated.
 
getAncestry(Class<T>) - Static method in class org.bson.util.ClassMap
Helper method that walks superclass and interface graph, superclasses first, then interfaces, to compute an ancestry list.
getBoolean(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a boolean.
getBoolean(String, boolean) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a boolean
getBSONSize() - Method in class org.bson.LazyBSONObject
Gets the size in bytes of the BSON document.
getBytes() - Method in class org.bson.LazyBSONObject
 
getCode() - Method in class org.bson.types.Code
Get the Javascript code.
getCString(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
getCurrentCounter() - Static method in class org.bson.types.ObjectId
Gets the current value of the auto-incrementing counter.
getCurrentInc() - Static method in class org.bson.types.ObjectId
Deprecated.
Please use ObjectId.getCurrentCounter() instead.
getData() - Method in class org.bson.types.Binary
Get a copy of the binary value.
getDate(String) - Method in class org.bson.BasicBSONObject
Returns the date or null if not set.
getDate(String, Date) - Method in class org.bson.BasicBSONObject
Returns the date or def if not set.
getDate() - Method in class org.bson.types.ObjectId
Gets the timestamp as a Date instance.
getDecodingHooks(Class) - Static method in class org.bson.BSON
Returns the decoding hook(s) associated with the specific class
getDouble(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a double.
getDouble(String, double) - Method in class org.bson.BasicBSONObject
Returns the value of a field as an double.
getElementBSONSize(int) - Method in class org.bson.LazyBSONObject
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
getElementType(int) - Method in class org.bson.LazyBSONObject
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
getElementValue(LazyBSONObject.ElementRecord) - Method in class org.bson.LazyBSONObject
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
getEncodingHooks(Class<?>) - Static method in class org.bson.BSON
Returns the encoding hook(s) associated with the specified class.
getErrorCode() - Method in exception org.bson.BSONException
Returns the error code.
getGenMachineId() - Static method in class org.bson.types.ObjectId
Deprecated. 
getInc() - Method in class org.bson.types.BSONTimestamp
Gets the increment value.
getInc() - Method in class org.bson.types.ObjectId
Deprecated.
Please use the ObjectId.toByteArray() instead.
getInt(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as an int.
getInt(String, int) - Method in class org.bson.BasicBSONObject
Returns the value of a field as an int.
getInt(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
Gets a Little Endian Integer
getIntBE(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
getIntLE(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
getLong(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a long.
getLong(String, long) - Method in class org.bson.BasicBSONObject
Returns the value of a field as an long.
getLong(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
getMachine() - Method in class org.bson.types.ObjectId
Deprecated.
Please use #toByteArray() instead.
getMax() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
getObjectId(String) - Method in class org.bson.BasicBSONObject
Returns the object id or null if not set.
getObjectId(String, ObjectId) - Method in class org.bson.BasicBSONObject
Returns the object id or def if not set.
getOffset() - Method in class org.bson.LazyBSONObject
 
getOutputBuffer() - Method in class org.bson.BasicBSONEncoder
Gets the buffer the BSON is being encoded into.
getPos() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
getPosition() - Method in class org.bson.io.BasicOutputBuffer
 
getPosition() - Method in class org.bson.io.OutputBuffer
Gets the current position in the stream.
getPosition() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
getScope() - Method in class org.bson.types.CodeWScope
Gets the scope, which is is a mapping from identifiers to values, representing the scope in which the code should be evaluated.
getString(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a string
getString(String, String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a string
getSymbol() - Method in class org.bson.types.Symbol
Gets the symbol.
getTime() - Method in class org.bson.types.BSONTimestamp
Gets the time in seconds since epoch.
getTime() - Method in class org.bson.types.ObjectId
Deprecated.
Use #getDate instead
getTimeSecond() - Method in class org.bson.types.ObjectId
Deprecated.
Use #getTimestamp instead
getTimestamp() - Method in class org.bson.types.ObjectId
Gets the timestamp (number of seconds since the Unix epoch).
getType() - Method in class org.bson.types.Binary
Get the binary sub type as a byte.
getUTF8String(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
gotBinary(String, byte, byte[]) - Method in class org.bson.BasicBSONCallback
 
gotBinary(String, byte, byte[]) - Method in interface org.bson.BSONCallback
Called when reading a field with a binary value.
gotBinary(String, byte, byte[]) - Method in class org.bson.EmptyBSONCallback
 
gotBinary(String, byte, byte[]) - Method in class org.bson.LazyBSONCallback
 
gotBinaryArray(String, byte[]) - Method in class org.bson.BasicBSONCallback
Deprecated.
gotBinaryArray(String, byte[]) - Method in interface org.bson.BSONCallback
Deprecated. 
gotBinaryArray(String, byte[]) - Method in class org.bson.EmptyBSONCallback
Deprecated.
gotBoolean(String, boolean) - Method in class org.bson.BasicBSONCallback
 
gotBoolean(String, boolean) - Method in interface org.bson.BSONCallback
Called when reading a field with a Boolean value.
gotBoolean(String, boolean) - Method in class org.bson.EmptyBSONCallback
 
gotCode(String, String) - Method in class org.bson.BasicBSONCallback
 
gotCode(String, String) - Method in interface org.bson.BSONCallback
Called when reading a field with a JavaScript value.
gotCode(String, String) - Method in class org.bson.EmptyBSONCallback
 
gotCodeWScope(String, String, Object) - Method in class org.bson.BasicBSONCallback
 
gotCodeWScope(String, String, Object) - Method in interface org.bson.BSONCallback
Called when reading a field with a JavaScript with Scope value.
gotCodeWScope(String, String, Object) - Method in class org.bson.EmptyBSONCallback
 
gotDate(String, long) - Method in class org.bson.BasicBSONCallback
 
gotDate(String, long) - Method in interface org.bson.BSONCallback
Called when reading a field with a DateTime value.
gotDate(String, long) - Method in class org.bson.EmptyBSONCallback
 
gotDBRef(String, String, ObjectId) - Method in class org.bson.BasicBSONCallback
 
gotDBRef(String, String, ObjectId) - Method in interface org.bson.BSONCallback
Invoked when BSONDecoder encountered a DBPointer(0x0c) type field in a byte sequence.
gotDBRef(String, String, ObjectId) - Method in class org.bson.EmptyBSONCallback
 
gotDouble(String, double) - Method in class org.bson.BasicBSONCallback
 
gotDouble(String, double) - Method in interface org.bson.BSONCallback
Called when reading a field with a Double value.
gotDouble(String, double) - Method in class org.bson.EmptyBSONCallback
 
gotInt(String, int) - Method in class org.bson.BasicBSONCallback
 
gotInt(String, int) - Method in interface org.bson.BSONCallback
Called when reading a field with an Int32 value.
gotInt(String, int) - Method in class org.bson.EmptyBSONCallback
 
gotLong(String, long) - Method in class org.bson.BasicBSONCallback
 
gotLong(String, long) - Method in interface org.bson.BSONCallback
Called when reading a field with an Int64 value.
gotLong(String, long) - Method in class org.bson.EmptyBSONCallback
 
gotMaxKey(String) - Method in class org.bson.BasicBSONCallback
 
gotMaxKey(String) - Method in interface org.bson.BSONCallback
Called when reading a field with a MaxKey value.
gotMaxKey(String) - Method in class org.bson.EmptyBSONCallback
 
gotMinKey(String) - Method in class org.bson.BasicBSONCallback
 
gotMinKey(String) - Method in interface org.bson.BSONCallback
Called when reading a field with a MinKey value.
gotMinKey(String) - Method in class org.bson.EmptyBSONCallback
 
gotNull(String) - Method in class org.bson.BasicBSONCallback
 
gotNull(String) - Method in interface org.bson.BSONCallback
Called when reading a BSON field that exists but has a null value.
gotNull(String) - Method in class org.bson.EmptyBSONCallback
 
gotObjectId(String, ObjectId) - Method in class org.bson.BasicBSONCallback
 
gotObjectId(String, ObjectId) - Method in interface org.bson.BSONCallback
Called when reading a field with an ObjectID value.
gotObjectId(String, ObjectId) - Method in class org.bson.EmptyBSONCallback
 
gotRegex(String, String, String) - Method in class org.bson.BasicBSONCallback
 
gotRegex(String, String, String) - Method in interface org.bson.BSONCallback
Called when reading a field with a Regex value.
gotRegex(String, String, String) - Method in class org.bson.EmptyBSONCallback
 
gotString(String, String) - Method in class org.bson.BasicBSONCallback
 
gotString(String, String) - Method in interface org.bson.BSONCallback
Called when reading a field with a String value.
gotString(String, String) - Method in class org.bson.EmptyBSONCallback
 
gotSymbol(String, String) - Method in class org.bson.BasicBSONCallback
 
gotSymbol(String, String) - Method in interface org.bson.BSONCallback
Called when reading a field with a Symbol value.
gotSymbol(String, String) - Method in class org.bson.EmptyBSONCallback
 
gotTimestamp(String, int, int) - Method in class org.bson.BasicBSONCallback
 
gotTimestamp(String, int, int) - Method in interface org.bson.BSONCallback
Called when reading a field with a Timestamp value.
gotTimestamp(String, int, int) - Method in class org.bson.EmptyBSONCallback
 
gotUndefined(String) - Method in class org.bson.BasicBSONCallback
 
gotUndefined(String) - Method in interface org.bson.BSONCallback
Called when reading a field with an Undefined value.
gotUndefined(String) - Method in class org.bson.EmptyBSONCallback
 
gotUUID(String, long, long) - Method in class org.bson.BasicBSONCallback
 
gotUUID(String, long, long) - Method in interface org.bson.BSONCallback
Called when reading a field with a UUID value.
gotUUID(String, long, long) - Method in class org.bson.EmptyBSONCallback
 

H

handleSpecialObjects(String, BSONObject) - Method in class org.bson.BasicBSONEncoder
Deprecated.
Override BasicBSONEncoder.putSpecial(String, Object) if you need to you need to handle custom types.
hasDecodeHooks() - Static method in class org.bson.BSON
Gets whether any decoding transformers have been registered for any classes.
hasErrorCode() - Method in exception org.bson.BSONException
Returns true if the error code is set (i.e., not null).
hashCode() - Method in class org.bson.BasicBSONObject
 
hashCode() - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
hashCode() - Method in class org.bson.LazyBSONObject
 
hashCode() - Method in class org.bson.types.Binary
 
hashCode() - Method in class org.bson.types.BSONTimestamp
 
hashCode() - Method in class org.bson.types.Code
 
hashCode() - Method in class org.bson.types.CodeWScope
 
hashCode() - Method in class org.bson.types.MaxKey
 
hashCode() - Method in class org.bson.types.MinKey
 
hashCode() - Method in class org.bson.types.ObjectId
 
hashCode() - Method in class org.bson.types.Symbol
 
hasNext() - Method in class org.bson.LazyBSONList.LazyBSONListIterator
 
hex() - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.

I

indexOf(Object) - Method in class org.bson.LazyBSONList
 
isElementEmpty(int) - Method in class org.bson.LazyBSONObject
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
isEmpty() - Method in class org.bson.LazyBSONObject
Gets whether this is an empty BSONObject.
isEmpty() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
isEmpty() - Method in class org.bson.util.ClassMap
As per java.util.Map, returns true if this map contains no key-value mappings.
isEmpty() - Method in class org.bson.util.StringRangeSet
Deprecated.
 
isNew() - Method in class org.bson.types.ObjectId
Deprecated.
'new' flag breaks the immutability of the ObjectId class and will be dropped in 3.x versions of the driver
isPartialObject() - Method in class org.bson.LazyDBList
Deprecated.
 
isStackEmpty() - Method in class org.bson.BasicBSONCallback
Returns whether this is the top level or not
isTrue(String, boolean) - Static method in class org.bson.util.Assertions
Deprecated.
 
isTrueArgument(String, boolean) - Static method in class org.bson.util.Assertions
Deprecated.
 
isValid(String) - Static method in class org.bson.types.ObjectId
Checks if a string could be an ObjectId.
iterator() - Method in class org.bson.LazyBSONList
 
iterator() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
iterator() - Method in class org.bson.util.StringRangeSet
Deprecated.
 

K

KeyCachingLazyBSONObject - Class in org.bson
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
KeyCachingLazyBSONObject(byte[], LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
Deprecated.
 
KeyCachingLazyBSONObject(byte[], int, LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
Deprecated.
 
KeyCachingLazyBSONObject(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
KeyCachingLazyBSONObject(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
keySet() - Method in interface org.bson.BSONObject
Returns this object's fields' names
keySet() - Method in class org.bson.LazyBSONObject
 
keySet() - Method in class org.bson.types.BasicBSONList
 

L

lastIndexOf(Object) - Method in class org.bson.LazyBSONList
 
LazyBSONCallback - Class in org.bson
A BSONCallback for creation of LazyBSONObject and LazyBSONList instances.
LazyBSONCallback() - Constructor for class org.bson.LazyBSONCallback
 
LazyBSONDecoder - Class in org.bson
implementation of BSONDecoder that creates LazyBSONObject instances
LazyBSONDecoder() - Constructor for class org.bson.LazyBSONDecoder
 
LazyBSONKeySet() - Constructor for class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
LazyBSONList - Class in org.bson
A LazyBSONObject representing a BSON array.
LazyBSONList(byte[], LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
Construct an instance with the given raw bytes and offset.
LazyBSONList(byte[], int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
Construct an instance with the given raw bytes and offset.
LazyBSONList(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
LazyBSONList(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
LazyBSONList.LazyBSONListIterator - Class in org.bson
An iterator over the values in a LazyBsonList.
LazyBSONListIterator() - Constructor for class org.bson.LazyBSONList.LazyBSONListIterator
 
LazyBSONObject - Class in org.bson
An immutable BSONObject backed by a byte buffer that lazily provides keys and values on request.
LazyBSONObject(byte[], LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
Construct an instance.
LazyBSONObject(byte[], int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
Construct an instance.
LazyBSONObject(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
LazyBSONObject(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
LazyBSONObject.LazyBSONKeySet - Class in org.bson
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
LazyDBList - Class in org.bson
Deprecated.
Please use LazyDBList instead.
LazyDBList(byte[], LazyBSONCallback) - Constructor for class org.bson.LazyDBList
Deprecated.
 
LazyDBList(byte[], int, LazyBSONCallback) - Constructor for class org.bson.LazyDBList
Deprecated.
 
LazyDBList(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.LazyDBList
LazyDBList(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.LazyDBList
length() - Method in class org.bson.types.Binary
Get the length of the data.
listIterator(int) - Method in class org.bson.LazyBSONList
 
listIterator() - Method in class org.bson.LazyBSONList
 

M

markAsPartialObject() - Method in class org.bson.LazyDBList
Deprecated.
 
massageToObjectId(Object) - Static method in class org.bson.types.ObjectId
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
MAXKEY - Static variable in class org.bson.BSON
 
MaxKey - Class in org.bson.types
Represent the maximum key value regardless of the key's type
MaxKey() - Constructor for class org.bson.types.MaxKey
 
md5() - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
MINKEY - Static variable in class org.bson.BSON
 
MinKey - Class in org.bson.types
Represent the minimum key value regardless of the key's type
MinKey() - Constructor for class org.bson.types.MinKey
 

N

NewBSONDecoder - Class in org.bson
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
NewBSONDecoder() - Constructor for class org.bson.NewBSONDecoder
Deprecated.
 
next() - Method in class org.bson.LazyBSONList.LazyBSONListIterator
 
notNew() - Method in class org.bson.types.ObjectId
Deprecated.
'new' flag breaks the immutability of the ObjectId class and will be dropped in 3.x versions of the driver
notNull(String, T) - Static method in class org.bson.util.Assertions
Deprecated.
 
NULL - Static variable in class org.bson.BSON
 
NUMBER - Static variable in class org.bson.BSON
 
NUMBER_INT - Static variable in class org.bson.BSON
 
NUMBER_LONG - Static variable in class org.bson.BSON
 
numRead() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 

O

OBJECT - Static variable in class org.bson.BSON
 
objectDone() - Method in class org.bson.BasicBSONCallback
 
objectDone() - Method in interface org.bson.BSONCallback
Called at the end of the document/array, and returns this object.
objectDone() - Method in class org.bson.EmptyBSONCallback
 
ObjectId - Class in org.bson.types
A globally unique identifier for objects.
ObjectId(Date) - Constructor for class org.bson.types.ObjectId
Constructs a new instance using the given date.
ObjectId(Date, int) - Constructor for class org.bson.types.ObjectId
Constructs a new instances using the given date and counter.
ObjectId(Date, int, int) - Constructor for class org.bson.types.ObjectId
Deprecated.
ObjectId's constructed this way do not conform to the ObjectId specification. Please use ObjectId.ObjectId(byte[]) or ObjectId.createFromLegacyFormat(int, int, int) instead.
ObjectId(String) - Constructor for class org.bson.types.ObjectId
Creates a new instance from a string.
ObjectId(String, boolean) - Constructor for class org.bson.types.ObjectId
Deprecated.
'babble' format is deprecated. Please use ObjectId.ObjectId(String) instead.
ObjectId(byte[]) - Constructor for class org.bson.types.ObjectId
Constructs an ObjectId given its 12-byte binary representation.
ObjectId(int, int, int) - Constructor for class org.bson.types.ObjectId
Deprecated.
ObjectId's constructed this way do not conform to the ObjectId specification. Please use ObjectId.ObjectId(byte[]) or ObjectId.createFromLegacyFormat(int, int, int) instead.
ObjectId() - Constructor for class org.bson.types.ObjectId
Create a new object id.
objectStart() - Method in class org.bson.BasicBSONCallback
 
objectStart(boolean) - Method in class org.bson.BasicBSONCallback
Deprecated.
instead, use BasicBSONCallback.arrayStart() if array is true, and BasicBSONCallback.objectStart() if if array is false
objectStart(String) - Method in class org.bson.BasicBSONCallback
 
objectStart(boolean, String) - Method in class org.bson.BasicBSONCallback
Deprecated.
instead, use BasicBSONCallback.arrayStart(String) if array is true, and BasicBSONCallback.objectStart(String) if array is false
objectStart() - Method in interface org.bson.BSONCallback
Signals the start of a BSON document, which usually maps onto some Java object.
objectStart(String) - Method in interface org.bson.BSONCallback
Signals the start of a BSON document, which usually maps onto some Java object.
objectStart(boolean) - Method in interface org.bson.BSONCallback
Deprecated.
instead, use BSONCallback.arrayStart() if array is true, and BSONCallback.objectStart() if array is false
objectStart() - Method in class org.bson.EmptyBSONCallback
 
objectStart(String) - Method in class org.bson.EmptyBSONCallback
 
objectStart(boolean) - Method in class org.bson.EmptyBSONCallback
Deprecated.
instead, use EmptyBSONCallback.arrayStart() if array is true, and EmptyBSONCallback.objectStart() if array is false
OID - Static variable in class org.bson.BSON
 
ok(T) - Method in class org.bson.util.SimplePool
Deprecated.
 
org.bson - package org.bson
Contains the base BSON classes and Encoder/Decoder.
org.bson.io - package org.bson.io
Contains classes implementing I/O operations used by BSON objects.
org.bson.types - package org.bson.types
Contains classes implementing various BSON types.
org.bson.util - package org.bson.util
Misc utils used by BSON.
OutputBuffer - Class in org.bson.io
An abstract base class for classes implementing BsonOutput.
OutputBuffer() - Constructor for class org.bson.io.OutputBuffer
 

P

pipe(OutputStream) - Method in class org.bson.io.BasicOutputBuffer
 
pipe(DataOutput) - Method in class org.bson.io.BasicOutputBuffer
Deprecated.
pipe(OutputStream) - Method in class org.bson.io.OutputBuffer
Pipe the contents of this output buffer into the given output stream
pipe(OutputStream) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
pipe(OutputStream) - Method in class org.bson.LazyBSONObject
Pipe the raw bytes into the given output stream.
PoolOutputBuffer - Class in org.bson.io
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
PoolOutputBuffer() - Constructor for class org.bson.io.PoolOutputBuffer
Deprecated.
 
position(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
put(String, Object) - Method in class org.bson.BasicBSONObject
 
put(String, Object) - Method in interface org.bson.BSONObject
Sets a name/value pair in this object.
put(String, Object) - Method in class org.bson.LazyBSONObject
Always throws UnsupportedOperationException.
put(String, Object) - Method in class org.bson.types.BasicBSONList
Puts a value at an index.
put(int, Object) - Method in class org.bson.types.BasicBSONList
Puts a value at an index.
put(Class<?>, T) - Method in class org.bson.util.ClassMap
As per java.util.Map, associates the specified value with the specified key in this map.
putAll(Map) - Method in class org.bson.BasicBSONObject
 
putAll(BSONObject) - Method in class org.bson.BasicBSONObject
 
putAll(BSONObject) - Method in interface org.bson.BSONObject
Sets all key/value pairs from an object into this object
putAll(Map) - Method in interface org.bson.BSONObject
Sets all key/value pairs from a map into this object
putAll(BSONObject) - Method in class org.bson.LazyBSONObject
Always throws UnsupportedOperationException.
putAll(Map) - Method in class org.bson.LazyBSONObject
Always throws UnsupportedOperationException.
putAll(Map) - Method in class org.bson.types.BasicBSONList
 
putAll(BSONObject) - Method in class org.bson.types.BasicBSONList
 
putBinary(String, byte[]) - Method in class org.bson.BasicBSONEncoder
Encodes a byte array field
putBinary(String, Binary) - Method in class org.bson.BasicBSONEncoder
Encodes a Binary field
putBoolean(String, Boolean) - Method in class org.bson.BasicBSONEncoder
Encodes a field with a Boolean or boolean value
putCode(String, Code) - Method in class org.bson.BasicBSONEncoder
Encodes a field to a JAVASCRIPT value.
putCodeWScope(String, CodeWScope) - Method in class org.bson.BasicBSONEncoder
Encodes a field to a JAVASCRIPT_WITH_SCOPE value.
putDate(String, Date) - Method in class org.bson.BasicBSONEncoder
Encodes a field with data and time value.
putNull(String) - Method in class org.bson.BasicBSONEncoder
Encodes a null value
putNumber(String, Number) - Method in class org.bson.BasicBSONEncoder
Encodes any number field.
putObject(BSONObject) - Method in class org.bson.BasicBSONEncoder
Encodes a BSONObject.
putObject(String, BSONObject) - Method in class org.bson.BasicBSONEncoder
This is really for embedded objects
putObject(BSONObject) - Method in interface org.bson.BSONEncoder
Encoder and write a document into underlying buffer.
putObjectId(String, ObjectId) - Method in class org.bson.BasicBSONEncoder
Encodes an ObjectId field to an OBJECT_ID.
putSpecial(String, Object) - Method in class org.bson.BasicBSONEncoder
Special values are not encoded into documents.
putString(String, String) - Method in class org.bson.BasicBSONEncoder
Encodes a String field
putSymbol(String, Symbol) - Method in class org.bson.BasicBSONEncoder
Encodes a Symbol field
putTimestamp(String, BSONTimestamp) - Method in class org.bson.BasicBSONEncoder
Encodes a BSON timestamp
putUndefined(String) - Method in class org.bson.BasicBSONEncoder
Encodes an undefined value
putUUID(String, UUID) - Method in class org.bson.BasicBSONEncoder
Encodes a field with a UUID value.

R

read() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
readCStr() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
readDouble() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
readFully(InputStream, byte[]) - Static method in class org.bson.io.Bits
Reads bytes from the input stream and puts them into the given byte buffer.
readFully(InputStream, byte[], int) - Static method in class org.bson.io.Bits
Reads bytes from the input stream and puts them into the given byte buffer.
readFully(InputStream, byte[], int, int) - Static method in class org.bson.io.Bits
Reads bytes from the input stream and puts them into the given byte buffer.
readInt() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
readInt(InputStream) - Static method in class org.bson.io.Bits
Reads and returns a single integer value from the input stream.
readInt(InputStream, byte[]) - Static method in class org.bson.io.Bits
Reads and returns a single integer value from the input stream.
readInt(byte[]) - Static method in class org.bson.io.Bits
Reads and returns a single integer value from the buffer.
readInt(byte[], int) - Static method in class org.bson.io.Bits
Reads and returns a single integer value from the buffer.
readIntBE() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
readIntBE(byte[], int) - Static method in class org.bson.io.Bits
Reads and returns a single big-endian integer value
readLong() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
readLong(InputStream) - Static method in class org.bson.io.Bits
Reads and returns a single long value from the input stream.
readLong(InputStream, byte[]) - Static method in class org.bson.io.Bits
Reads and returns a single long value from the input stream.
readLong(byte[]) - Static method in class org.bson.io.Bits
Reads and returns a single long value from the buffer.
readLong(byte[], int) - Static method in class org.bson.io.Bits
Reads and returns a single long value from the buffer.
readObject(byte[]) - Method in class org.bson.BasicBSONDecoder
 
readObject(InputStream) - Method in class org.bson.BasicBSONDecoder
 
readObject(byte[]) - Method in interface org.bson.BSONDecoder
Read a single BSON object from the given bytes.
readObject(InputStream) - Method in interface org.bson.BSONDecoder
Read a single BSON object from the given input stream.
readObject(byte[]) - Method in class org.bson.LazyBSONDecoder
 
readObject(InputStream) - Method in class org.bson.LazyBSONDecoder
 
readObject(byte[]) - Method in class org.bson.NewBSONDecoder
Deprecated.
 
readObject(InputStream) - Method in class org.bson.NewBSONDecoder
Deprecated.
 
readUTF8String() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
REF - Static variable in class org.bson.BSON
 
REGEX - Static variable in class org.bson.BSON
 
regexFlag(char) - Static method in class org.bson.BSON
Converts a regular expression modifier from the database into Java regular expression flags.
regexFlags(String) - Static method in class org.bson.BSON
Converts a sequence of regular expression modifiers from the database into Java regular expression flags.
regexFlags(int) - Static method in class org.bson.BSON
Converts Java regular expression flags into regular expression modifiers from the database.
remove() - Method in class org.bson.LazyBSONList.LazyBSONListIterator
 
remove(Object) - Method in class org.bson.LazyBSONList
 
remove(int) - Method in class org.bson.LazyBSONList
 
remove(Object) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
remove(Object) - Method in class org.bson.util.ClassMap
As per java.util.Map, removes the mapping for a key from this map if it is present
remove(Object) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
removeAll(Collection) - Method in class org.bson.LazyBSONList
 
removeAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
removeDecodingHook(Class, Transformer) - Static method in class org.bson.BSON
Remove a specific encoding hook for a specific class.
removeDecodingHooks(Class) - Static method in class org.bson.BSON
Remove all decoding hooks for a specific class.
removeEncodingHook(Class, Transformer) - Static method in class org.bson.BSON
Remove a specific encoding hook for a specific class.
removeEncodingHooks(Class) - Static method in class org.bson.BSON
Remove all encoding hooks for a specific class.
removeField(String) - Method in class org.bson.BasicBSONObject
Deletes a field from this object.
removeField(String) - Method in interface org.bson.BSONObject
Removes a field with a given name from this object.
removeField(String) - Method in class org.bson.LazyBSONObject
Always throws UnsupportedOperationException.
removeField(String) - Method in class org.bson.types.BasicBSONList
 
reset() - Method in class org.bson.BasicBSONCallback
 
reset() - Method in interface org.bson.BSONCallback
Resets the callback, clearing all state.
reset() - Method in class org.bson.EmptyBSONCallback
 
reset() - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
reset() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
reset() - Method in class org.bson.LazyBSONCallback
 
retainAll(Collection) - Method in class org.bson.LazyBSONList
 
retainAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
Deprecated.
 

S

seekEnd() - Method in class org.bson.io.BasicOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
seekEnd() - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
seekEnd() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
seekStart() - Method in class org.bson.io.BasicOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
seekStart() - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
seekStart() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
set(OutputBuffer) - Method in class org.bson.BasicBSONEncoder
 
set(OutputBuffer) - Method in interface org.bson.BSONEncoder
Sets the buffer to wrich the result of encoding will be written.
set(int, Object) - Method in class org.bson.LazyBSONList
 
setMax(int) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
setPosition(int) - Method in class org.bson.io.BasicOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
setPosition(int) - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
setPosition(int) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
setRoot(Object) - Method in class org.bson.BasicBSONCallback
Sets the root document for this position
setRootObject(Object) - Method in class org.bson.LazyBSONCallback
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
SimplePool<T> - Class in org.bson.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
SimplePool(int) - Constructor for class org.bson.util.SimplePool
Deprecated.
 
SimplePool() - Constructor for class org.bson.util.SimplePool
Deprecated.
 
size() - Method in class org.bson.io.BasicOutputBuffer
 
size() - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
size() - Method in class org.bson.io.OutputBuffer
Gets the output size in bytes.
size() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
size() - Method in class org.bson.LazyBSONList
 
size() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
This method runs in time linear to the total size of all keys in the document.
size() - Method in class org.bson.util.ClassMap
As per java.util.Map, returns the number of key-value mappings in this map.
size() - Method in class org.bson.util.StringRangeSet
Deprecated.
 
sizeCString(int) - Method in class org.bson.LazyBSONObject
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
STRING - Static variable in class org.bson.BSON
 
StringRangeSet - Class in org.bson.util
Deprecated.
This class is NOT a part of public API and will be dropped in the next major release
StringRangeSet(int) - Constructor for class org.bson.util.StringRangeSet
Deprecated.
 
subList(int, int) - Method in class org.bson.LazyBSONList
 
SYMBOL - Static variable in class org.bson.BSON
 
Symbol - Class in org.bson.types
Class to hold an instance of the BSON symbol type.
Symbol(String) - Constructor for class org.bson.types.Symbol
Construct a new instance with the given symbol.

T

TIMESTAMP - Static variable in class org.bson.BSON
 
toArray() - Method in class org.bson.LazyBSONList
 
toArray(Object[]) - Method in class org.bson.LazyBSONList
 
toArray() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
toArray(T[]) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
toArray() - Method in class org.bson.util.StringRangeSet
Deprecated.
 
toArray(T[]) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
toByteArray() - Method in class org.bson.io.OutputBuffer
Gets a copy of the buffered bytes.
toByteArray() - Method in class org.bson.types.ObjectId
Convert to a byte array.
toHexString() - Method in class org.bson.types.ObjectId
Converts this instance into a 24-byte hexadecimal string representation.
toInt(Object) - Static method in class org.bson.BSON
Provides an integer representation of Boolean or Number.
toMap() - Method in class org.bson.BasicBSONObject
Converts a DBObject to a map.
toMap() - Method in interface org.bson.BSONObject
Returns a map representing this BSONObject.
toMap() - Method in class org.bson.LazyBSONObject
 
toMap() - Method in class org.bson.types.BasicBSONList
 
toString() - Method in class org.bson.BasicBSONObject
Returns a JSON serialization of this object
toString() - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
toString() - Method in class org.bson.io.OutputBuffer
 
toString() - Method in class org.bson.LazyBSONObject
Returns a JSON serialization of this object
toString() - Method in class org.bson.LazyDBList
Deprecated.
Returns a JSON serialization of this object
toString() - Method in class org.bson.types.BSONTimestamp
 
toString() - Method in class org.bson.types.Code
 
toString() - Method in class org.bson.types.MaxKey
 
toString() - Method in class org.bson.types.MinKey
 
toString() - Method in class org.bson.types.ObjectId
 
toString() - Method in class org.bson.types.Symbol
 
toStringBabble() - Method in class org.bson.types.ObjectId
Deprecated.
'babble' format is deprecated and will be removed in 3.0. Please use ObjectId.toHexString() instead.
toStringMongod() - Method in class org.bson.types.ObjectId
Deprecated.
transform(Object) - Method in interface org.bson.Transformer
Turns the objectToTransform into some other Object.
Transformer - Interface in org.bson
Transforms objects that can be converted to BSON into other Java types, and vice versa.
truncateToPosition(int) - Method in class org.bson.io.OutputBuffer
Truncates the buffer to the given new position, which must be greater than or equal to zero and less than or equal to the current size of this buffer.
truncateToPosition(int) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 

U

UNDEFINED - Static variable in class org.bson.BSON
 

W

wrap(byte[], int, int) - Static method in class org.bson.io.BSONByteBuffer
Deprecated.
 
wrap(byte[]) - Static method in class org.bson.io.BSONByteBuffer
Deprecated.
 
write(byte[]) - Method in class org.bson.io.BasicOutputBuffer
 
write(byte[], int, int) - Method in class org.bson.io.BasicOutputBuffer
 
write(int) - Method in class org.bson.io.BasicOutputBuffer
 
write(byte[]) - Method in class org.bson.io.OutputBuffer
 
write(byte[], int, int) - Method in class org.bson.io.OutputBuffer
 
write(int) - Method in class org.bson.io.OutputBuffer
 
write(byte[]) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
write(byte[], int, int) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
write(int) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
writeCString(String) - Method in class org.bson.BasicBSONEncoder
Deprecated.
Replaced by getOutputBuffer().writeCString(String).
writeCString(String) - Method in class org.bson.io.OutputBuffer
Writes C string (null-terminated string) to underlying buffer.
writeDouble(double) - Method in class org.bson.io.OutputBuffer
Writes a BSON double to the stream.
writeInt(int) - Method in class org.bson.BasicBSONEncoder
Deprecated.
Replaced by getOutputBuffer().writeInt(int).
writeInt(int) - Method in class org.bson.io.OutputBuffer
Writes the given integer value to the buffer.
writeInt(int, int) - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
writeIntBE(int) - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
writeLong(long) - Method in class org.bson.BasicBSONEncoder
Deprecated.
Replaced by getOutputBuffer().writeLong(long).
writeLong(long) - Method in class org.bson.io.OutputBuffer
Writes the given long value to the buffer.
writeString(String) - Method in class org.bson.io.OutputBuffer
Writes a BSON String to the stream.

_

_binary(String) - Method in class org.bson.BasicBSONDecoder
Deprecated.
This method should not be a part of API. Please see the class-level documentation for a migration instructions.
_buf - Variable in class org.bson.BasicBSONEncoder
Deprecated.
_callback - Variable in class org.bson.BasicBSONDecoder
Deprecated.
This field should not be a part of API. Please see the class-level documentation for a migration instructions.
_callback - Variable in class org.bson.LazyBSONObject
Deprecated.
This field is NOT a part of public API and will be dropped in 3.x versions.
_doc_start_offset - Variable in class org.bson.LazyBSONObject
Deprecated.
Please use LazyBSONObject.getOffset() instead.
_flip(int) - Static method in class org.bson.types.ObjectId
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
_in - Variable in class org.bson.BasicBSONDecoder
Deprecated.
This field should not be a part of API. Please see the class-level documentation for a migration instructions.
_inc() - Method in class org.bson.types.ObjectId
Deprecated.
Please use ObjectId.toByteArray() instead.
_input - Variable in class org.bson.LazyBSONObject
Deprecated.
Please use LazyBSONObject.getBytes() to access underlying bytes.
_isAscii(byte) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
_len - Variable in class org.bson.BasicBSONDecoder
Deprecated.
This field should not be a part of API. Please see the class-level documentation for a migration instructions.
_machine() - Method in class org.bson.types.ObjectId
Deprecated.
Please use ObjectId.toByteArray() instead.
_need(int) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
ensure that there are num bytes to read _pos is where to start reading from
_pos - Variable in class org.bson.BasicBSONDecoder
Deprecated.
This field should not be a part of API. Please see the class-level documentation for a migration instructions.
_put(String, Object) - Method in class org.bson.BasicBSONCallback
Puts a new value into the document.
_put(byte, String) - Method in class org.bson.BasicBSONEncoder
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions. Access buffer directly via BasicBSONEncoder.getOutputBuffer() if you need to change how BSON is written.
_put(String) - Method in class org.bson.BasicBSONEncoder
Deprecated.
Replaced by getOutputBuffer().writeCString(String).
_putObjectField(String, Object) - Method in class org.bson.BasicBSONEncoder
Encodes any Object type
_putValueString(String) - Method in class org.bson.BasicBSONEncoder
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions. Access buffer directly via BasicBSONEncoder.getOutputBuffer() if you need to change how BSON is written. Otherwise override BasicBSONEncoder.putString(String, String).
_time() - Method in class org.bson.types.ObjectId
Deprecated.
Please use ObjectId.getTimestamp() ()} instead.
_utf8 - Static variable in class org.bson.BSON
Deprecated.
Use Charset.forName(String) to create UTF-8 charset.
A B C D E F G H I K L M N O P R S T U W _ 
Skip navigation links