org.jmythapi.protocol.utils
Class EventUtils
java.lang.Object
org.jmythapi.protocol.utils.EventUtils
public class EventUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventUtils
public EventUtils()
readFrom
public static final <Event extends IMythEvent<?>> Event readFrom(IMythPacket packet)
throws IllegalArgumentException,
UnknownCommandException
- Throws:
IllegalArgumentException
UnknownCommandException
readFrom
public static final <Event extends IMythEvent<?>> Event readFrom(Class<Event> respClass,
IMythPacket packet)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
getResponseClass
public static <Event extends IMythEvent<?>> Class<Event> getResponseClass(String commandName)
throws UnknownCommandException
- Throws:
UnknownCommandException
Copyright © 2008-2013. All Rights Reserved.