Package | Description |
---|---|
org.bson |
Contains the base BSON classes.
|
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 |
---|
Context(AbstractBsonReader.Context parentContext,
BsonContextType contextType)
Creates a new instance.
|
Context(AbstractBsonWriter.Context parentContext,
BsonContextType contextType)
Creates a new instance.
|
Context(BsonBinaryWriter.Context parentContext,
BsonContextType contextType,
int startPosition)
Creates a new instance
|
Context(BsonDocumentReader.Context parentContext,
BsonContextType contextType,
BsonArray array) |
Context(BsonDocumentReader.Context parentContext,
BsonContextType contextType,
BsonDocument document) |
Modifier and Type | Method and Description |
---|---|
protected BsonContextType |
JsonReader.Context.getContextType() |
Constructor and Description |
---|
Context(AbstractBsonReader.Context parentContext,
BsonContextType contextType) |
Context(JsonWriter.Context parentContext,
BsonContextType contextType)
Creates a new context.
|
Context(JsonWriter.Context parentContext,
BsonContextType contextType,
String indentChars)
Deprecated.
|
Copyright © 2018. All rights reserved.