Serializable
, Comparable<AbstractBsonWriter.State>
public static enum AbstractBsonWriter.State extends Enum<AbstractBsonWriter.State>
Enum Constant | Description |
---|---|
CLOSED |
The writer is closed.
|
DONE |
The writer is done.
|
INITIAL |
The initial state.
|
NAME |
The writer is positioned to write a name.
|
SCOPE_DOCUMENT |
The writer is positioned to write a scope document (call WriteStartDocument to start writing the scope document).
|
VALUE |
The writer is positioned to write a value.
|
Modifier and Type | Method | Description |
---|---|---|
static AbstractBsonWriter.State |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static AbstractBsonWriter.State[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractBsonWriter.State INITIAL
public static final AbstractBsonWriter.State NAME
public static final AbstractBsonWriter.State VALUE
public static final AbstractBsonWriter.State SCOPE_DOCUMENT
public static final AbstractBsonWriter.State DONE
public static final AbstractBsonWriter.State CLOSED
public static AbstractBsonWriter.State[] values()
for (AbstractBsonWriter.State c : AbstractBsonWriter.State.values()) System.out.println(c);
public static AbstractBsonWriter.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null