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 JSONEventHandler
getEventHandler()
ParserSettings
getParserSettings()
static EventProvider
newDefaultEventProvider()
abstract void
notifyArrayEnd()
Notify consumer that we encountered the end of an array boundaryabstract void
notifyArrayStart()
Notify consumer that we encountered the start of an array boundaryabstract void
notifyBooleanTokenEnd(ByteBuffer tokenValue)
abstract void
notifyBooleanTokenStart()
abstract void
notifyDocumentEnd()
abstract void
notifyDocumentStart(ByteBuffer start)
abstract void
notifyEntityEnd()
Notify consumer that we encountered an entity terminator (e.g.,) a commaabstract void
notifyEvent(JSONEvent event)
abstract void
notifyKeyEnd()
abstract void
notifyMapEnd()
abstract void
notifyMapStart()
abstract void
notifyNullTokenEnd(ByteBuffer tokenValue)
abstract void
notifyNullTokenStart()
abstract void
notifyNumberTokenEnd(ByteBuffer tokenValue)
abstract void
notifyNumberTokenStart()
abstract void
notifyStringTokenEnd(ByteBuffer tokenValue)
abstract void
notifyStringTokenStart()
void
setParserSettings(ParserSettings settings)
-
Constructor Details
-
EventProvider
public EventProvider()
-
-
Method Details
-
getParserSettings
- Specified by:
getParserSettings
in interfaceConfigurable
-
setParserSettings
- Specified by:
setParserSettings
in 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:
notifyEvent
in interfaceJSONEventProvider
-