Enum JsonProvider.JsonStyle
- java.lang.Object
-
- java.lang.Enum<JsonProvider.JsonStyle>
-
- com.adaptris.core.services.splitter.json.JsonProvider.JsonStyle
-
- All Implemented Interfaces:
JsonProvider.JsonObjectProvider
,java.io.Serializable
,java.lang.Comparable<JsonProvider.JsonStyle>
- Enclosing interface:
- JsonProvider
public static enum JsonProvider.JsonStyle extends java.lang.Enum<JsonProvider.JsonStyle> implements JsonProvider.JsonObjectProvider
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JSON_ARRAY
A standard JSON array.JSON_LINES
JSON_OBJECT
A standard JSON object.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonProvider.JsonStyle
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JsonProvider.JsonStyle[]
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 interface com.adaptris.core.services.splitter.json.JsonProvider.JsonObjectProvider
createIterator
-
-
-
-
Enum Constant Detail
-
JSON_ARRAY
public static final JsonProvider.JsonStyle JSON_ARRAY
A standard JSON array.Under the covers it uses
LargeJsonArraySplitter
to iterate over the array.
-
JSON_OBJECT
public static final JsonProvider.JsonStyle JSON_OBJECT
A standard JSON object.Under the covers it uses
JsonObjectSplitter
to iterate over the object according to the same semantics as that implementation.
-
JSON_LINES
public static final JsonProvider.JsonStyle JSON_LINES
JSON LinesUnder the covers it uses a
LineCountSplitter
to iterate over each line, ignoring blank lines.
-
-
Method Detail
-
values
public static JsonProvider.JsonStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JsonProvider.JsonStyle c : JsonProvider.JsonStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonProvider.JsonStyle valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-