Package | Description |
---|---|
org.bson |
Contains the base BSON classes.
|
org.bson.json |
JSON serialization and deserialization.
|
Modifier and Type | Field and Description |
---|---|
private BsonContextType |
AbstractBsonReader.Mark.contextType |
private BsonContextType |
AbstractBsonReader.Context.contextType |
private BsonContextType |
AbstractBsonWriter.Context.contextType |
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(java.lang.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(java.lang.String methodName,
BsonContextType actualContextType,
BsonContextType... validContextTypes)
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
|
protected void |
AbstractBsonReader.throwInvalidContextType(java.lang.String methodName,
BsonContextType actualContextType,
BsonContextType... validContextTypes)
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
|
protected void |
AbstractBsonWriter.throwInvalidContextType(java.lang.String methodName,
BsonContextType actualContextType,
BsonContextType... validContextTypes)
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
|
protected void |
AbstractBsonWriter.throwInvalidContextType(java.lang.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(BsonBinaryReader.Context parentContext,
BsonContextType contextType,
int startPosition,
int size) |
Context(BsonBinaryWriter.Context parentContext,
BsonContextType contextType,
int startPosition)
Creates a new instance
|
Context(BSONCallbackAdapter.Context parentContext,
BsonContextType contextType) |
Context(BsonDocumentReader.Context parentContext,
BsonContextType contextType,
BsonArray array) |
Context(BsonDocumentReader.Context parentContext,
BsonContextType contextType,
BsonDocument document) |
Context(BsonValue container,
BsonContextType contextType,
BsonDocumentWriter.Context parent) |
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,
java.lang.String indentChars)
Creates a new context.
|