Package org.snakeyaml.engine.v2.events
Class StreamEndEvent
- java.lang.Object
-
- org.snakeyaml.engine.v2.events.Event
-
- org.snakeyaml.engine.v2.events.StreamEndEvent
-
public final class StreamEndEvent extends Event
Marks the end of a stream that might have contained multiple documents.This event is the last event that a parser emits. Together with
StreamStartEvent(which is the first event a parser emits) they mark the beginning and the end of a stream of documents.See
Eventfor an exemplary output.
-
-
Constructor Summary
Constructors Constructor Description StreamEndEvent()StreamEndEvent(java.util.Optional<Mark> startMark, java.util.Optional<Mark> endMark)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event.IDgetEventId()Get the type (kind) if this Eventjava.lang.StringtoString()-
Methods inherited from class org.snakeyaml.engine.v2.events.Event
getEndMark, getStartMark
-
-
-
-
Method Detail
-
getEventId
public Event.ID getEventId()
Description copied from class:EventGet the type (kind) if this Event- Specified by:
getEventIdin classEvent- Returns:
- the ID of this Event
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-