Package io.cucumber.messages
Class NdjsonToMessageIterable
- java.lang.Object
-
- io.cucumber.messages.NdjsonToMessageIterable
-
- All Implemented Interfaces:
Iterable<Messages.Envelope>
public class NdjsonToMessageIterable extends Object implements Iterable<Messages.Envelope>
Iterates over messages read from a stream. Client code should not depend on this class directly, but rather on aIterable<Messages.Envelope>object. Tests can then use anew ArrayList<Messages.Envelope>which implements the same interface.
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.protobuf.util.JsonFormat.ParserJSON_PARSER
-
Constructor Summary
Constructors Constructor Description NdjsonToMessageIterable(InputStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<Messages.Envelope>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
NdjsonToMessageIterable
public NdjsonToMessageIterable(InputStream input)
-
-
Method Detail
-
iterator
public Iterator<Messages.Envelope> iterator()
- Specified by:
iteratorin interfaceIterable<Messages.Envelope>
-
-