T
- the message typepublic abstract class MessageReader<T extends Enum<T>> extends Object
EnumMap
to generate and read the according
Message
object when a message is send over the stream.Constructor and Description |
---|
MessageReader(Class<T> typeClass) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
fillList() |
protected Map<T,Class<? extends Message<T>>> |
getMessages() |
Message |
read(DataInputStream in) |
public MessageReader(Class<T> typeClass)
protected abstract void fillList()
public Message read(DataInputStream in) throws IOException
IOException