public static enum AbstractBsonWriter.State extends java.lang.Enum<AbstractBsonWriter.State>
| 枚举常量和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static AbstractBsonWriter.State |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static AbstractBsonWriter.State[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值