public class MessageOutputStream extends Object implements MessageStream
Constructor and Description |
---|
MessageOutputStream(OutputStream outputStream) |
MessageOutputStream(OutputStream outputStream,
Context context) |
Modifier and Type | Method and Description |
---|---|
void |
addMessageHandler(MessageHandler handler) |
void |
addMessageHandler(MessageTemplate template,
MessageHandler handler) |
void |
close() |
Context |
getContext() |
TemplateRegistry |
getTemplateRegistry() |
OutputStream |
getUnderlyingStream() |
void |
registerTemplate(int templateId,
MessageTemplate template) |
void |
reset() |
void |
setBlockWriter(MessageBlockWriter blockWriter)
Specify a block writer implementation that is used to prefix messages
with a block size
|
void |
setTemplateRegistry(TemplateRegistry registry) |
void |
writeMessage(Message message) |
void |
writeMessage(Message message,
boolean flush) |
public MessageOutputStream(OutputStream outputStream)
public MessageOutputStream(OutputStream outputStream, Context context)
public void writeMessage(Message message)
public void writeMessage(Message message, boolean flush)
public void reset()
public void registerTemplate(int templateId, MessageTemplate template)
public void close()
close
in interface MessageStream
public OutputStream getUnderlyingStream()
public void addMessageHandler(MessageTemplate template, MessageHandler handler)
addMessageHandler
in interface MessageStream
public void addMessageHandler(MessageHandler handler)
addMessageHandler
in interface MessageStream
public void setTemplateRegistry(TemplateRegistry registry)
public void setBlockWriter(MessageBlockWriter blockWriter)
blockWriter
- public TemplateRegistry getTemplateRegistry()
getTemplateRegistry
in interface MessageStream
public Context getContext()
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.