public final class StandardMessageFactory extends AbstractMessageFactory<StandardMessageURN>
Modifier and Type | Field and Description |
---|---|
static StandardMessageFactory |
INSTANCE
Singleton instance.
|
Modifier and Type | Method and Description |
---|---|
Message |
makeMessage(StandardMessageURN urn,
java.io.InputStream data)
Create a message based on its urn and populate it with data from a stream.
|
getKnownMessageURNs, getKnownMessageURNsEnum, makeMessage
public static final StandardMessageFactory INSTANCE
public Message makeMessage(StandardMessageURN urn, java.io.InputStream data) throws java.io.IOException
AbstractMessageFactory
makeMessage
in class AbstractMessageFactory<StandardMessageURN>
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.