Class ConsoleEventHandler
java.lang.Object
org.ghotibeaun.json.parser.jep.eventhandler.EventHandler
org.ghotibeaun.json.parser.jep.eventhandler.ConsoleEventHandler
- All Implemented Interfaces:
Configurable,JSONEventHandler
public class ConsoleEventHandler extends EventHandler
-
Constructor Summary
Constructors Constructor Description ConsoleEventHandler() -
Method Summary
Modifier and Type Method Description voiddocumentEnd()The document end eventvoiddocumentStart(JSONValueType type)The document start eventvoidhandleEvent(JSONEvent event)voidjsonArrayEnd(String key)End of a JSONArrayvoidjsonArrayStart(String key)Start of new JSONArray.voidjsonObjectEnd(String key)End of a JSONObjectvoidjsonObjectStart(String key)Start of a new JSONObjectvoidnewKey(String key)voidvalueBigDecimal(String key, BigDecimal value)BigDecimal valuevoidvalueBoolean(String key, boolean value)Boolean valuevoidvalueDouble(String key, Double value)Double value valuevoidvalueFloat(String key, Float value)Float valuevoidvalueInt(String key, Integer value)Integer valuevoidvalueLong(String key, Long value)Long valuevoidvalueNull(String key)null valuevoidvalueString(String key, String value)String valueMethods inherited from class org.ghotibeaun.json.parser.jep.eventhandler.EventHandler
consoleEventHandler, getCharacterSet, getDataValue, getParserSettings, setParserSettings
-
Constructor Details
-
ConsoleEventHandler
public ConsoleEventHandler()
-
-
Method Details
-
documentStart
Description copied from interface:JSONEventHandlerThe document start event- Specified by:
documentStartin interfaceJSONEventHandler- Specified by:
documentStartin classEventHandler- Parameters:
type- the document type, will either be JSONValueType.OBJECT orJSONValueType.ARRAY
-
documentEnd
public void documentEnd()Description copied from interface:JSONEventHandlerThe document end event- Specified by:
documentEndin interfaceJSONEventHandler- Specified by:
documentEndin classEventHandler
-
jsonArrayStart
Description copied from interface:JSONEventHandlerStart of new JSONArray.- Specified by:
jsonArrayStartin interfaceJSONEventHandler- Specified by:
jsonArrayStartin classEventHandler- Parameters:
key- the parent key that is associated with the array
-
jsonArrayEnd
Description copied from interface:JSONEventHandlerEnd of a JSONArray- Specified by:
jsonArrayEndin interfaceJSONEventHandler- Specified by:
jsonArrayEndin classEventHandler- Parameters:
key- the parent key associated with the array
-
jsonObjectStart
Description copied from interface:JSONEventHandlerStart of a new JSONObject- Specified by:
jsonObjectStartin interfaceJSONEventHandler- Specified by:
jsonObjectStartin classEventHandler- Parameters:
key- the parent key associated with the object
-
jsonObjectEnd
Description copied from interface:JSONEventHandlerEnd of a JSONObject- Specified by:
jsonObjectEndin interfaceJSONEventHandler- Specified by:
jsonObjectEndin classEventHandler- Parameters:
key- the parent key associated with this object
-
valueString
Description copied from interface:JSONEventHandlerString value- Specified by:
valueStringin interfaceJSONEventHandler- Specified by:
valueStringin classEventHandler- Parameters:
key- the key associated with this valuevalue- the value
-
valueLong
Description copied from interface:JSONEventHandlerLong value- Specified by:
valueLongin interfaceJSONEventHandler- Specified by:
valueLongin classEventHandler- Parameters:
key- the key associated with this valuevalue- the value
-
valueInt
Description copied from interface:JSONEventHandlerInteger value- Specified by:
valueIntin interfaceJSONEventHandler- Specified by:
valueIntin classEventHandler- Parameters:
key- the key associated with this valuevalue- the value
-
valueBigDecimal
Description copied from interface:JSONEventHandlerBigDecimal value- Specified by:
valueBigDecimalin interfaceJSONEventHandler- Specified by:
valueBigDecimalin classEventHandler- Parameters:
key- the key associated with this valuevalue- the value
-
valueDouble
Description copied from interface:JSONEventHandlerDouble value value- Specified by:
valueDoublein interfaceJSONEventHandler- Specified by:
valueDoublein classEventHandler- Parameters:
key- the key associated with this valuevalue- the value
-
valueFloat
Description copied from interface:JSONEventHandlerFloat value- Specified by:
valueFloatin interfaceJSONEventHandler- Specified by:
valueFloatin classEventHandler- Parameters:
key- the key associated with this valuevalue- the value
-
valueBoolean
Description copied from interface:JSONEventHandlerBoolean value- Specified by:
valueBooleanin interfaceJSONEventHandler- Specified by:
valueBooleanin classEventHandler- Parameters:
key- the key associated with this valuevalue- the value
-
valueNull
Description copied from interface:JSONEventHandlernull value- Specified by:
valueNullin interfaceJSONEventHandler- Specified by:
valueNullin classEventHandler- Parameters:
key- the key associated with this value
-
newKey
- Specified by:
newKeyin interfaceJSONEventHandler- Specified by:
newKeyin classEventHandler
-
handleEvent
- Specified by:
handleEventin interfaceJSONEventHandler- Specified by:
handleEventin classEventHandler
-