org.jmythapi.protocol.utils
Class EventUtils

java.lang.Object
  extended by org.jmythapi.protocol.utils.EventUtils

public class EventUtils
extends Object


Constructor Summary
EventUtils()
           
 
Method Summary
static
<Event extends IMythEvent<?>>
Class<Event>
getResponseClass(String commandName)
           
static
<Event extends IMythEvent<?>>
Event
readFrom(Class<Event> respClass, IMythPacket packet)
           
static
<Event extends IMythEvent<?>>
Event
readFrom(IMythPacket packet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventUtils

public EventUtils()
Method Detail

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.