public final class ControlMessageFactory extends AbstractMessageFactory<ControlMessageURN>
| Modifier and Type | Field and Description |
|---|---|
static ControlMessageFactory |
INSTANCE
Singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
makeMessage(ControlMessageURN urn,
java.io.InputStream data)
Create a message based on its urn and populate it with data from a stream.
|
getKnownMessageURNs, getKnownMessageURNsEnum, makeMessagepublic static final ControlMessageFactory INSTANCE
public Message makeMessage(ControlMessageURN urn, java.io.InputStream data) throws java.io.IOException
AbstractMessageFactorymakeMessage in class AbstractMessageFactory<ControlMessageURN>urn - The urn of the message type to create.data - An InputStream to read message data from.java.io.IOException - If there is a problem reading the stream.