|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.voytechs.jnetstream.codec.event.DecoderEvent
com.voytechs.jnetstream.codec.event.DecoderPacketEvent
public class DecoderPacketEvent
Decoder event for new packets. When a new packet is created by the decoder this event is dispatched. Event is dispatched after the packet has been fully processed and assesed. You can retrieve the following information from this event.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
Name of this event. |
static java.lang.String |
TYPE
Event type identifier. |
| Constructor Summary | |
|---|---|
DecoderPacketEvent(Packet packet,
Decoder decoder)
New Packet has been created event. |
|
| Method Summary | |
|---|---|
Decoder |
getDecoder()
Returns the Decoder object reference which generated this event. |
Packet |
getPacket()
Returns the Packet object reference which generated this event. |
| Methods inherited from class com.voytechs.jnetstream.codec.event.DecoderEvent |
|---|
getSubType, getType, main |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TYPE
public static final java.lang.String NAME
| Constructor Detail |
|---|
public DecoderPacketEvent(Packet packet,
Decoder decoder)
packet - The Packet that was constructed that caused the dispatch.decoder - The decoder that is the parent of all of the internal
structures.| Method Detail |
|---|
public Packet getPacket()
public Decoder getDecoder()
Returns the Decoder object reference which generated this event. This decoder was the one used to decode and generate the packet.
This is sometimes needed as multiple decoders can be used in unisome and allows tracking of which decoder the packets are comming from.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||