public class IOMessageWriter extends Object implements MessageWriter
| Constructor and Description |
|---|
IOMessageWriter(OutputStream out,
net.morimekta.providence.serializer.Serializer serializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
separator()
Write an entry separator to the writer.
|
<Message extends net.morimekta.providence.PMessage<Message>> |
write(net.morimekta.providence.PMessageOrBuilder<Message> message)
Write a providence message to the writer.
|
<Message extends net.morimekta.providence.PMessage<Message>> |
write(net.morimekta.providence.PServiceCall<Message> call)
Write a providence service call to the writer.
|
public IOMessageWriter(OutputStream out, net.morimekta.providence.serializer.Serializer serializer)
public <Message extends net.morimekta.providence.PMessage<Message>> int write(net.morimekta.providence.PMessageOrBuilder<Message> message)
throws IOException
MessageWriterwrite in interface MessageWriterMessage - The message type.message - The message to write.IOException - If write failed.public <Message extends net.morimekta.providence.PMessage<Message>> int write(net.morimekta.providence.PServiceCall<Message> call)
throws IOException
MessageWriterwrite in interface MessageWriterMessage - The message type embedded in the call.call - The service call to write.IOException - If write failed.public int separator()
throws IOException
MessageWriterseparator in interface MessageWriterIOException - If write failed.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015–2020 morimekta.net. All rights reserved.