public class SceneUpdateMarshaller extends Object
| Constructor and Description |
|---|
SceneUpdateMarshaller(Class<?>... typesClasses)
Create a SceneUpdateMarshaller that understands the update types specified.
|
| Modifier and Type | Method and Description |
|---|---|
SceneUpdate |
decodeUpdate(int sceneId,
int sceneVersion,
int updateType,
byte[] data)
Instantiates the appropriate update class and decodes the update from the data.
|
Class<?> |
getUpdateClass(int type)
Returns the update class associated with the specified type code, or null.
|
int |
getUpdateType(Class<?> typeClass)
Returns the type code that is assigned to the specified SceneUpdate class, or -1.
|
int |
getUpdateType(SceneUpdate update)
Returns the type code that is assigned to the specified SceneUpdate instance, or -1.
|
byte[] |
persistUpdate(SceneUpdate update)
Persists the specified update to a new ByteArrayOutInputStream.
|
public SceneUpdateMarshaller(Class<?>... typesClasses)
public int getUpdateType(SceneUpdate update)
public int getUpdateType(Class<?> typeClass)
public Class<?> getUpdateClass(int type)
public byte[] persistUpdate(SceneUpdate update) throws PersistenceException
PersistenceExceptionpublic SceneUpdate decodeUpdate(int sceneId, int sceneVersion, int updateType, byte[] data) throws PersistenceException
PersistenceExceptionCopyright © 2015. All rights reserved.