net.minidev.json.parser
public class ContentHandlerDumy extends Object implements ContentHandler
| Modifier and Type | Field and Description |
|---|---|
static ContentHandlerDumy |
HANDLER |
| Constructor and Description |
|---|
ContentHandlerDumy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
endArray()
Receive notification of the end of a JSON array.
|
void |
endJSON()
Receive notification of the end of JSON processing.
|
boolean |
endObject()
Receive notification of the end of a JSON object.
|
boolean |
endObjectEntry()
Receive notification of the end of the value of previous object entry.
|
boolean |
primitive(Object value)
Receive notification of the JSON primitive values: java.lang.String,
java.lang.Number, java.lang.Boolean null
|
boolean |
startArray()
Receive notification of the beginning of a JSON array.
|
void |
startJSON()
Receive notification of the beginning of JSON processing.
|
boolean |
startObject()
Receive notification of the beginning of a JSON object.
|
boolean |
startObjectEntry(String key)
Receive notification of the beginning of a JSON object entry.
|
public static ContentHandlerDumy HANDLER
public void startJSON()
throws ParseException
ContentHandlerstartJSON in interface ContentHandlerParseException - - JSONParser will stop and throw the same exception to the
caller when receiving this exception.public void endJSON()
throws ParseException
ContentHandlerendJSON in interface ContentHandlerParseExceptionpublic boolean startObject()
throws ParseException,
IOException
ContentHandlerstartObject in interface ContentHandlerParseException - - JSONParser will stop and throw the same exception to the
caller when receiving this exception.IOExceptionContentHandler.endJSON()public boolean endObject()
throws ParseException
ContentHandlerendObject in interface ContentHandlerParseExceptionContentHandler.startObject()public boolean startObjectEntry(String key) throws ParseException
ContentHandlerstartObjectEntry in interface ContentHandlerkey - - Key of a JSON object entry.ParseExceptionContentHandler.endObjectEntry()public boolean endObjectEntry()
throws ParseException
ContentHandlerendObjectEntry in interface ContentHandlerParseExceptionContentHandler.startObjectEntry(java.lang.String)public boolean startArray()
throws ParseException
ContentHandlerstartArray in interface ContentHandlerParseExceptionContentHandler.endArray()public boolean endArray()
throws ParseException
ContentHandlerendArray in interface ContentHandlerParseExceptionContentHandler.startArray()public boolean primitive(Object value) throws ParseException
ContentHandlerprimitive in interface ContentHandlervalue - - Instance of the following: java.lang.String,
java.lang.Number, java.lang.Boolean nullParseExceptionCopyright © 2013 Chemouni Uriel. All Rights Reserved.