public interface MessageWriter extends Closeable
Modifier and Type | Method and Description |
---|---|
int |
separator()
Write an entry separator to the writer.
|
<Message extends PMessage<Message,Field>,Field extends PField> |
write(Message message)
Write a providence message to the writer.
|
<Message extends PMessage<Message,Field>,Field extends PField> |
write(PServiceCall<Message,Field> call)
Write a providence service call to the writer.
|
<Message extends PMessage<Message,Field>,Field extends PField> int write(Message message) throws IOException
Message
- The message type.Field
- The field type.message
- The message to write.IOException
- If write failed.<Message extends PMessage<Message,Field>,Field extends PField> int write(PServiceCall<Message,Field> call) throws IOException
Message
- The message type embedded in the call.Field
- The field type embedded in the call.call
- The service call to write.IOException
- If write failed.int separator() throws IOException
IOException
- If write failed.Copyright © 2015–2017 morimekta.net. All rights reserved.