Package io.github.qishr.cascara.common.lang.processor
Interface PullParser
java.lang.Object
io.github.qishr.cascara.common.lang.processor.PullParser
All Implemented Interfaces:
Processor, Iterator<StreamingEvent>, AutoCloseable
All Known Implementing Classes:
JsonPullParser, YamlPullParser
@io.github.qishr.cascara.common.lang.annotation.Beta
public interface PullParser
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public abstract StreamingEvent | next() | Advances to the next event in the stream and returns it. |
| public abstract boolean | hasNext() | Checks if the parser can continue advancing. |
Method Details
next
public abstract StreamingEvent next()
Advances to the next event in the stream and returns it.Returns null (or an END_DOCUMENT event) when the stream is exhausted.
Throws:
Specified By:
hasNext
public abstract boolean hasNext()
Checks if the parser can continue advancing.
Throws:
Specified By: