Package arc.util.serialization
Enum Class JsonWriter.OutputType
- All Implemented Interfaces:
Serializable
,Comparable<JsonWriter.OutputType>
,Constable
- Enclosing class:
- JsonWriter
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLike JSON, but names are only double quoted if necessary.Normal JSON, with all its double quotes.Like JSON, but: Names only require double quotes if they start withspace
or any of":,}/
or they contain//
or/*
or:
. -
Method Summary
Modifier and TypeMethodDescriptionquoteValue
(Object value) static JsonWriter.OutputType
Returns the enum constant of this class with the specified name.static JsonWriter.OutputType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
json
Normal JSON, with all its double quotes. -
javascript
Like JSON, but names are only double quoted if necessary. -
minimal
Like JSON, but:- Names only require double quotes if they start with
space
or any of":,}/
or they contain//
or/*
or:
. - Values only require double quotes if they start with
space
or any of":,{[]/
or they contain//
or/*
or any of}],
or they are equal totrue
,false
, ornull
. - Newlines are treated as commas, making commas optional in many cases.
- C style comments may be used:
//...
or/*...*/
- Names only require double quotes if they start with
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
quoteValue
-
quoteName
-