Class StreamStartEvent


  • public final class StreamStartEvent
    extends Event
    Marks the start of a stream that might contain multiple documents.

    This event is the first event that a parser emits. Together with StreamEndEvent (which is the last event a parser emits) they mark the beginning and the end of a stream of documents.

    See Event for an exemplary output.

    • Constructor Detail

      • StreamStartEvent

        public StreamStartEvent​(Mark startMark,
                                Mark endMark)
    • Method Detail

      • is

        public boolean is​(Event.ID id)
        Specified by:
        is in class Event