|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Serializer
An automatically generated class that knows about all Streamable
and
NexusService
classes that will be used by a client. This is used on platforms that lack
reflection capabilities.
Method Summary | ||
---|---|---|
Class<?> |
getClass(short code)
Returns the class assigned the supplied code. |
|
short |
getCode(Class<?> clazz)
Returns the code assigned to the supplied class. |
|
short |
getServiceCode(Class<? extends NexusService> clazz)
Returns the code assigned to the supplied service class. |
|
DService.Factory<?> |
getServiceFactory(short code)
Returns the service factory for the class assigned the supplied code. |
|
Streamer<?> |
getStreamer(short code)
Returns the streamer for the class assigned the supplied code. |
|
|
writeStreamer(Streamable.Output out,
T value)
Writes the class code for the supplied value, and returns the streamer for same. |
Method Detail |
---|
Class<?> getClass(short code)
NexusException
- if no class is registered for the supplied code.Streamer<?> getStreamer(short code)
NexusException
- if no streamer is registered for the supplied code.DService.Factory<?> getServiceFactory(short code)
NexusException
- if no service is registered for the supplied code.short getCode(Class<?> clazz)
NexusException
- if the class in question is not registered.short getServiceCode(Class<? extends NexusService> clazz)
NexusException
- if the class in question is not registered.<T> Streamer<T> writeStreamer(Streamable.Output out, T value)
NexusException
- if the class for the value in question is not registered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |