Package | Description |
---|---|
org.bson |
This package contains bson classes required for the driver
|
org.bson.json |
JSON serialization and deserialization.
|
Modifier and Type | Method and Description |
---|---|
protected BsonContextType |
AbstractBsonReader.Mark.getContextType() |
protected BsonContextType |
AbstractBsonReader.Context.getContextType()
Return the type of this context.
|
BsonContextType |
AbstractBsonWriter.Context.getContextType()
Gets the current context type.
|
static BsonContextType |
BsonContextType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BsonContextType[] |
BsonContextType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractBsonReader.throwInvalidContextType(String methodName,
BsonContextType actualContextType,
BsonContextType... validContextTypes)
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
|
protected void |
AbstractBsonReader.throwInvalidContextType(String methodName,
BsonContextType actualContextType,
BsonContextType... validContextTypes)
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
|
protected void |
AbstractBsonWriter.throwInvalidContextType(String methodName,
BsonContextType actualContextType,
BsonContextType... validContextTypes)
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
|
protected void |
AbstractBsonWriter.throwInvalidContextType(String methodName,
BsonContextType actualContextType,
BsonContextType... validContextTypes)
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
|
Constructor and Description |
---|
AbstractBsonReader.Context(AbstractBsonReader.Context parentContext,
BsonContextType contextType)
Creates a new instance.
|
AbstractBsonWriter.Context(AbstractBsonWriter.Context parentContext,
BsonContextType contextType)
Creates a new instance.
|
BsonBinaryWriter.Context(BsonBinaryWriter.Context parentContext,
BsonContextType contextType,
int startPosition)
Creates a new instance
|
BsonDocumentReader.Context(BsonDocumentReader.Context parentContext,
BsonContextType contextType,
BsonArray array) |
BsonDocumentReader.Context(BsonDocumentReader.Context parentContext,
BsonContextType contextType,
BsonDocument document) |
Modifier and Type | Method and Description |
---|---|
protected BsonContextType |
JsonReader.Context.getContextType() |
Constructor and Description |
---|
JsonReader.Context(AbstractBsonReader.Context parentContext,
BsonContextType contextType) |
JsonWriter.Context(JsonWriter.Context parentContext,
BsonContextType contextType,
String indentChars)
Creates a new context.
|
Copyright © 2016. All Rights Reserved.