public class JsonHandlerDelegator extends JsonHandler<Object,Object>
Modifier and Type | Field and Description |
---|---|
static EPTypeClass |
EPTYPE |
Constructor and Description |
---|
JsonHandlerDelegator() |
Modifier and Type | Method and Description |
---|---|
void |
endArray(Object array)
Indicates the end of an array in the JSON input.
|
void |
endArrayValue(Object array)
Indicates the end of an array element in the JSON input.
|
void |
endBoolean(boolean value)
Indicates the end of a boolean literal (
true or false ) in the JSON
input. |
void |
endNull()
Indicates the end of a
null literal in the JSON input. |
void |
endNumber(String string)
Indicates the end of a number in the JSON input.
|
void |
endObject(Object object)
Indicates the end of an object in the JSON input.
|
void |
endObjectValue(Object object,
String name)
Indicates the end of an object member value in the JSON input.
|
void |
endString(String string)
Indicates the end of a string in the JSON input.
|
void |
setDelegate(JsonDelegateBase top) |
Object |
startArray()
Indicates the beginning of an array in the JSON input.
|
Object |
startObject()
Indicates the beginning of an object in the JSON input.
|
void |
startObjectValue(Object object,
String name)
Indicates the beginning of the name of an object member in the JSON input.
|
endObjectName, getLocation, startArrayValue, startBoolean, startNull, startNumber, startObjectName, startString
public static final EPTypeClass EPTYPE
public void setDelegate(JsonDelegateBase top)
public void startObjectValue(Object object, String name)
JsonHandler
startObjectValue
in class JsonHandler<Object,Object>
object
- the object handler returned from JsonHandler.startObject()
, or null
if not
providedname
- the member namepublic Object startObject()
JsonHandler
'{'
).
This method may return an object to handle subsequent parser events for this object. This
object handler will be provided in all calls to startObjectName()
, endObjectName()
,
startObjectValue()
,
endObjectValue()
, and endObject()
for this object.
startObject
in class JsonHandler<Object,Object>
null
if not neededpublic Object startArray()
JsonHandler
'['
).
This method may return an object to handle subsequent parser events for this array. This array
handler will then be provided in all calls to startArrayValue()
, endArrayValue()
, and
endArray()
for this array.
startArray
in class JsonHandler<Object,Object>
null
if not neededpublic void endString(String string)
JsonHandler
'"'
).endString
in class JsonHandler<Object,Object>
string
- the parsed stringpublic void endNumber(String string)
JsonHandler
endNumber
in class JsonHandler<Object,Object>
string
- the parsed number stringpublic void endNull()
JsonHandler
null
literal in the JSON input. This method will be called
after reading the last character of the literal.endNull
in class JsonHandler<Object,Object>
public void endBoolean(boolean value)
JsonHandler
true
or false
) in the JSON
input. This method will be called after reading the last character of the literal.endBoolean
in class JsonHandler<Object,Object>
value
- the parsed boolean valuepublic void endObjectValue(Object object, String name)
JsonHandler
end
method for the
specific member type (like endString()
, endNumber()
, etc.).endObjectValue
in class JsonHandler<Object,Object>
object
- the object handler returned from JsonHandler.startObject()
, or null if not providedname
- the parsed member namepublic void endArrayValue(Object array)
JsonHandler
end
method for the
specific element type (like endString()
, endNumber()
, etc.).endArrayValue
in class JsonHandler<Object,Object>
array
- the array handler returned from JsonHandler.startArray()
, or null
if not
providedpublic void endArray(Object array)
JsonHandler
']'
).endArray
in class JsonHandler<Object,Object>
array
- the array handler returned from JsonHandler.startArray()
, or null
if not
providedpublic void endObject(Object object)
JsonHandler
'}'
).endObject
in class JsonHandler<Object,Object>
object
- the object handler returned from JsonHandler.startObject()
, or null if not providedCopyright © 2005–2021. All rights reserved.