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 Details

    • EventProvider

      public EventProvider()
  • Method Details

    • getParserSettings

      public ParserSettings getParserSettings()
      Specified by:
      getParserSettings in interface Configurable
    • setParserSettings

      public void setParserSettings​(ParserSettings settings)
      Specified by:
      setParserSettings in interface Configurable
    • getEventHandler

      public JSONEventHandler getEventHandler()
    • newDefaultEventProvider

      public static EventProvider newDefaultEventProvider()
    • notifyDocumentStart

      public abstract void notifyDocumentStart​(ByteBuffer start)
    • notifyDocumentEnd

      public abstract void notifyDocumentEnd()
    • notifyStringTokenStart

      public abstract void notifyStringTokenStart()
    • notifyStringTokenEnd

      public abstract void notifyStringTokenEnd​(ByteBuffer tokenValue)
    • notifyBooleanTokenStart

      public abstract void notifyBooleanTokenStart()
    • notifyBooleanTokenEnd

      public abstract void notifyBooleanTokenEnd​(ByteBuffer tokenValue)
    • notifyNumberTokenStart

      public abstract void notifyNumberTokenStart()
    • notifyNumberTokenEnd

      public abstract void notifyNumberTokenEnd​(ByteBuffer tokenValue)
    • notifyNullTokenStart

      public abstract void notifyNullTokenStart()
    • notifyNullTokenEnd

      public abstract void notifyNullTokenEnd​(ByteBuffer tokenValue)
    • 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

      public abstract void notifyEvent​(JSONEvent event)
      Specified by:
      notifyEvent in interface JSONEventProvider