com.voytechs.jnetstream.codec.event
Class DecoderEvent

java.lang.Object
  extended by com.voytechs.jnetstream.codec.event.DecoderEvent
Direct Known Subclasses:
DecoderFlowEvent, DecoderInternals, DecoderPacketEvent

public class DecoderEvent
extends java.lang.Object

This is a base class for all Decoder events. To find out the type of event, use the getType() method. Then if extended information about the event is needed, the event object needs to be cast to the type of event it is.
The following events are supported.


Constructor Summary
DecoderEvent(java.lang.String eventType)
           
 
Method Summary
 int getSubType()
          Return the subtype of event.
 java.lang.String getType()
          Returns the type of event.
static void main(java.lang.String[] args)
          Test function for DecoderEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoderEvent

public DecoderEvent(java.lang.String eventType)
Parameters:
-
Throws:
Method Detail

getType

public java.lang.String getType()
Returns the type of event.

Returns:
The type of event this is. The type is defined by the subclass of this base class.

getSubType

public int getSubType()
Return the subtype of event.


main

public static void main(java.lang.String[] args)
Test function for DecoderEvent

Parameters:
args - command line arguments