Class EventProvider
java.lang.Object
org.ghotibeaun.json.parser.jep.eventprovider.EventProvider
- All Implemented Interfaces:
Configurable,JSONEventProvider
public abstract class EventProvider extends Object implements JSONEventProvider
-
Constructor Summary
Constructors Constructor Description EventProvider() -
Method Summary
Modifier and Type Method Description JSONEventHandlergetEventHandler()ParserSettingsgetParserSettings()static EventProvidernewDefaultEventProvider()abstract voidnotifyArrayEnd()Notify consumer that we encountered the end of an array boundaryabstract voidnotifyArrayStart()Notify consumer that we encountered the start of an array boundaryabstract voidnotifyBooleanTokenEnd(ByteBuffer tokenValue)abstract voidnotifyBooleanTokenStart()abstract voidnotifyDocumentEnd()abstract voidnotifyDocumentStart(ByteBuffer start)abstract voidnotifyEntityEnd()Notify consumer that we encountered an entity terminator (e.g.,) a commaabstract voidnotifyEvent(JSONEvent event)abstract voidnotifyKeyEnd()abstract voidnotifyMapEnd()abstract voidnotifyMapStart()abstract voidnotifyNullTokenEnd(ByteBuffer tokenValue)abstract voidnotifyNullTokenStart()abstract voidnotifyNumberTokenEnd(ByteBuffer tokenValue)abstract voidnotifyNumberTokenStart()abstract voidnotifyStringTokenEnd(ByteBuffer tokenValue)abstract voidnotifyStringTokenStart()voidsetParserSettings(ParserSettings settings)
-
Constructor Details
-
EventProvider
public EventProvider()
-
-
Method Details
-
getParserSettings
- Specified by:
getParserSettingsin interfaceConfigurable
-
setParserSettings
- Specified by:
setParserSettingsin interfaceConfigurable
-
getEventHandler
-
newDefaultEventProvider
-
notifyDocumentStart
-
notifyDocumentEnd
public abstract void notifyDocumentEnd() -
notifyStringTokenStart
public abstract void notifyStringTokenStart() -
notifyStringTokenEnd
-
notifyBooleanTokenStart
public abstract void notifyBooleanTokenStart() -
notifyBooleanTokenEnd
-
notifyNumberTokenStart
public abstract void notifyNumberTokenStart() -
notifyNumberTokenEnd
-
notifyNullTokenStart
public abstract void notifyNullTokenStart() -
notifyNullTokenEnd
-
notifyMapStart
public abstract void notifyMapStart() -
notifyMapEnd
public abstract void notifyMapEnd() -
notifyKeyEnd
public abstract void notifyKeyEnd() -
notifyArrayStart
public abstract void notifyArrayStart()Notify consumer that we encountered the start of an array boundary -
notifyArrayEnd
public abstract void notifyArrayEnd()Notify consumer that we encountered the end of an array boundary -
notifyEntityEnd
public abstract void notifyEntityEnd()Notify consumer that we encountered an entity terminator (e.g.,) a comma -
notifyEvent
- Specified by:
notifyEventin interfaceJSONEventProvider
-