public class JSONByteIOFramerFactory extends Object implements ByteIOFramerFactory
On input, each block matching this framing rule is regarded as a parseable unit; that is, it is expected to contain one or more syntactically complete JSON messages. The entire block is read into an internal buffer, then parsed for JSON messages that are fed to the receiver.
On output, each message being sent is framed according to this rule.
Constructor and Description |
---|
JSONByteIOFramerFactory(Trace msgTrace)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ByteIOFramer |
provideFramer(MessageReceiver receiver,
String label)
Provide an I/O framer for a new connection.
|
public JSONByteIOFramerFactory(Trace msgTrace)
msgTrace
- Trace object for logging message traffic.public ByteIOFramer provideFramer(MessageReceiver receiver, String label)
provideFramer
in interface ByteIOFramerFactory
receiver
- Object to deliver received messages to.label
- A printable label identifying the associated connection.Copyright © 2017. All rights reserved.