public static enum AbstractBsonWriter.State extends Enum<AbstractBsonWriter.State>
| Enum Constant and Description | 
|---|
| CLOSEDThe writer is closed. | 
| DONEThe writer is done. | 
| INITIALThe initial state. | 
| NAMEThe writer is positioned to write a name. | 
| SCOPE_DOCUMENTThe writer is positioned to write a scope document (call WriteStartDocument to start writing the scope document). | 
| VALUEThe writer is positioned to write a value. | 
| Modifier and Type | Method and 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