|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JsonParser.Feature>
org.codehaus.jackson.JsonParser.Feature
public static enum JsonParser.Feature
Enumeration that defines all togglable features for parsers.
Enum Constant Summary | |
---|---|
ALLOW_COMMENTS
|
|
ALLOW_SINGLE_QUOTES
|
|
ALLOW_UNQUOTED_CONTROL_CHARS
|
|
ALLOW_UNQUOTED_FIELD_NAMES
|
|
AUTO_CLOSE_SOURCE
Feature that determines whether parser will automatically close underlying input source that is NOT owned by the parser. |
|
CANONICALIZE_FIELD_NAMES
|
|
INTERN_FIELD_NAMES
|
Method Summary | |
---|---|
static int |
collectDefaults()
Method that calculates bit set (flags) of all features that are enabled by default. |
boolean |
enabledByDefault()
|
boolean |
enabledIn(int flags)
|
int |
getMask()
|
static JsonParser.Feature |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JsonParser.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 JsonParser.Feature AUTO_CLOSE_SOURCE
InputStream
and Reader
instances used to create the parser. If enabled, parser
will handle closing, as long as parser itself gets closed:
this happens when end-of-input is encountered, or parser
is closed by a call to JsonParser.close()
.
Feature is enabled by default.
public static final JsonParser.Feature ALLOW_COMMENTS
public static final JsonParser.Feature ALLOW_UNQUOTED_FIELD_NAMES
public static final JsonParser.Feature ALLOW_SINGLE_QUOTES
public static final JsonParser.Feature ALLOW_UNQUOTED_CONTROL_CHARS
public static final JsonParser.Feature INTERN_FIELD_NAMES
public static final JsonParser.Feature CANONICALIZE_FIELD_NAMES
Method Detail |
---|
public static JsonParser.Feature[] values()
for (JsonParser.Feature c : JsonParser.Feature.values()) System.out.println(c);
public static JsonParser.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 boolean enabledIn(int flags)
public int getMask()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |