|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<JsonGenerator.Feature>
org.codehaus.jackson.JsonGenerator.Feature
public static enum JsonGenerator.Feature
Enumeration that defines all togglable features for generators.
| Enum Constant Summary | |
|---|---|
AUTO_CLOSE_JSON_CONTENT
|
|
AUTO_CLOSE_TARGET
Feature that determines whether generator will automatically close underlying output target that is NOT owned by the generator. |
|
QUOTE_FIELD_NAMES
|
|
QUOTE_NON_NUMERIC_NUMBERS
|
|
WRITE_NUMBERS_AS_STRINGS
|
|
| Method Summary | |
|---|---|
static int |
collectDefaults()
Method that calculates bit set (flags) of all features that are enabled by default. |
boolean |
enabledByDefault()
|
int |
getMask()
|
static JsonGenerator.Feature |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JsonGenerator.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 JsonGenerator.Feature AUTO_CLOSE_TARGET
OutputStream and Writer
instances used to create the generator. If enabled, generator
will handle closing, as long as generator itself gets closed:
this happens when end-of-input is encountered, or generator
is closed by a call to JsonGenerator.close().
Feature is enabled by default.
public static final JsonGenerator.Feature AUTO_CLOSE_JSON_CONTENT
public static final JsonGenerator.Feature QUOTE_FIELD_NAMES
public static final JsonGenerator.Feature QUOTE_NON_NUMERIC_NUMBERS
public static final JsonGenerator.Feature WRITE_NUMBERS_AS_STRINGS
| Method Detail |
|---|
public static JsonGenerator.Feature[] values()
for (JsonGenerator.Feature c : JsonGenerator.Feature.values()) System.out.println(c);
public static JsonGenerator.Feature valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static int collectDefaults()
public boolean enabledByDefault()
public int getMask()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||