net.jackofalltrades.irc.dcc.event
Class DccDataEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bynet.jackofalltrades.irc.dcc.event.DccDataEvent
All Implemented Interfaces:
java.io.Serializable

public class DccDataEvent
extends java.util.EventObject
implements java.io.Serializable

Encapsulates data received via a DCC Connection to be handled in a way defined by the IRC application.

Version:
$Revision: 1.5 $ $Date: 2003/07/05 15:02:50 $
Author:
Bradley M. Handy
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DccDataEvent(java.lang.Object source, byte[] data)
          Creates a new DccDataEvent.
 
Method Summary
 byte[] getData()
          Returns the data read from the DccConnection which spawned this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DccDataEvent

public DccDataEvent(java.lang.Object source,
                    byte[] data)
Creates a new DccDataEvent.

Parameters:
data - a byte array containing the data read from a Socket or prepared by a GUI, or other, component.
Throws:
java.lang.IllegalArgumentException - if data is null.
Method Detail

getData

public byte[] getData()
Returns the data read from the DccConnection which spawned this event.

Returns:
the data read from the DccConnection


Copyright © 2002-2003 Jack-of-all-trades Programming Services. All Rights Reserved.