Package org.snakeyaml.engine.v2.events
Class StreamStartEvent
- java.lang.Object
-
- org.snakeyaml.engine.v2.events.Event
-
- org.snakeyaml.engine.v2.events.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 Summary
Constructors Constructor Description StreamStartEvent()
StreamStartEvent(java.util.Optional<Mark> startMark, java.util.Optional<Mark> endMark)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event.ID
getEventId()
Get the type (kind) if this Eventjava.lang.String
toString()
-
Methods inherited from class org.snakeyaml.engine.v2.events.Event
getEndMark, getStartMark
-
-
-
-
Method Detail
-
getEventId
public Event.ID getEventId()
Description copied from class:Event
Get the type (kind) if this Event- Specified by:
getEventId
in classEvent
- Returns:
- the ID of this Event
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-