java.lang.Object
io.cucumber.messages.MessageToNdjsonWriter
- All Implemented Interfaces:
Flushable,AutoCloseable
Writes messages to a stream.
The stream will contain a sequence of json objects separated
by a \n character. The objects written are the serialized
representation of Envelopes.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMessageToNdjsonWriter(OutputStream outputStream, MessageToNdjsonWriter.Serializer serializer) -
Method Summary
-
Constructor Details
-
MessageToNdjsonWriter
public MessageToNdjsonWriter(OutputStream outputStream, MessageToNdjsonWriter.Serializer serializer)
-
-
Method Details
-
write
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Throws:
IOException
-