public class MessageObject
extends java.lang.Object
KeyValue backed MessageObject structure, which are often sent by the Steam servers.| Constructor and Description |
|---|
MessageObject()
Initializes a new instance of the
MessageObject class with an empty inner KeyValues. |
MessageObject(KeyValue keyValues)
Initializes a new instance of the
MessageObject class, using the provided KeyValues object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
readFromStream(java.io.InputStream stream)
Populates this MessageObject instance from the data inside the given stream.
|
void |
writeToStream(java.io.OutputStream stream)
Writes this MessageObject instance to the given stream.
|
protected KeyValue keyValues
public MessageObject(KeyValue keyValues)
MessageObject class, using the provided KeyValues object.keyValues - The KeyValue backing store for this message object.public MessageObject()
MessageObject class with an empty inner KeyValues.public boolean readFromStream(java.io.InputStream stream)
throws java.io.IOException
stream - The stream to load data from.java.io.IOException - IO exception during reading from the streampublic void writeToStream(java.io.OutputStream stream)
throws java.io.IOException
stream - The stream to write to.java.io.IOException - IO exception during writing to the stream