Intel

Developer Zone

AppletEvent


com.intel.util
Class AppletEvent

java.lang.Object
  extended by com.intel.util.AppletEvent

public class AppletEvent
extends java.lang.Object

The class provides access to data delivered with the event to EventClient.


Method Summary
byte[] getData()
Retrieves the application-defined data associated with this event.
int getData(byte[] destination, int index)
Copies the application-defined data associated with this event into the provided array.
int getDataLength()
Returns the length of the application-defined data associated with this event.
int getReason()
Returns the event reason code.
java.lang.String getSource()
Returns the string representing UUID of the applet that posted this event.
Methods inherited from class java.lang.Object
equals, hashCode, toString

Method Detail

getData

public byte[] getData()
Retrieves the application-defined data associated with this event.

Returns:
Byte array holding the data.

getData

public int getData(byte[] destination,
                   int index)
Copies the application-defined data associated with this event into the provided array.

Parameters:
destination - the destination array
index - the offset within the destination array
Returns:
The actual number of bytes copied into destination array.

getDataLength

public int getDataLength()
Returns the length of the application-defined data associated with this event.

Returns:
Length of the event data.

getSource

public java.lang.String getSource()
Returns the string representing UUID of the applet that posted this event. Note that the sender UUID is set by the system and therefore can not be spoofed.

Returns:
Sender UUID in string format.

getReason

public int getReason()
Returns the event reason code.

Returns:
The event reason code.