Enum Constants.SCANNER
java.lang.Object
java.lang.Enum<Constants.SCANNER>
org.apache.synapse.commons.staxon.core.json.stream.impl.Constants.SCANNER
- All Implemented Interfaces:
Serializable,Comparable<Constants.SCANNER>,java.lang.constant.Constable
- Enclosing class:
Constants
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInstructs the XML Reader to use the generated scanner to tokenize the JSON stream.Instructs the XML Reader to use the JSON scanner that can process anonymous nested arrays.
If this scanner is used, the input stream has to be read once within the message builder to identify the type
of JSON message (ie.Instructs the XML Reader to use the JSON scanner that can both process anonymous (nested/top level) arrays
and adds additional tokens to the input stream to identify the type of JSON steam. -
Method Summary
Modifier and TypeMethodDescriptiontoString()static Constants.SCANNERReturns the enum constant of this type with the specified name.static Constants.SCANNER[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Instructs the XML Reader to use the generated scanner to tokenize the JSON stream. -
SCANNER_1
Instructs the XML Reader to use the JSON scanner that can process anonymous nested arrays.
If this scanner is used, the input stream has to be read once within the message builder to identify the type
of JSON message (ie. if the payload is a JSON Object or a JSON array object.) -
SCANNER_2
Instructs the XML Reader to use the JSON scanner that can both process anonymous (nested/top level) arrays
and adds additional tokens to the input stream to identify the type of JSON steam. If this scanner is used, theres no need to pre-read the input stream within the message builder to identify the type
of JSON message (ie. if the payload is a JSON Object or a JSON array object.)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<Constants.SCANNER>
-