|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<BsonGenerator.Feature>
de.undercouch.bson4jackson.BsonGenerator.Feature
public static enum BsonGenerator.Feature
Defines toggable features
| Enum Constant Summary | |
|---|---|
ENABLE_STREAMING
Enables streaming by setting the document's total number of bytes in the header to 0. |
|
| Method Summary | |
|---|---|
int |
getMask()
|
static BsonGenerator.Feature |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BsonGenerator.Feature[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final BsonGenerator.Feature ENABLE_STREAMING
Enables streaming by setting the document's total number of bytes in the header to 0. This allows the generator to flush the output buffer from time to time. Otherwise the generator would have to buffer the whole file to be able to calculate the total number of bytes.
ATTENTION: By enabling this feature, the BSON document
generated by this class will not be compatible to the
specification! However, if you know what you are doing and
if you know that the document will be read by a parser that
ignores the total number of bytes anyway (like BsonParser
or org.bson.BSONDecoder from the MongoDB Java Driver
do) then this feature will be very useful.
| Method Detail |
|---|
public static BsonGenerator.Feature[] values()
for (BsonGenerator.Feature c : BsonGenerator.Feature.values()) System.out.println(c);
public static BsonGenerator.Feature valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic int getMask()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||