net.sf.bloof.util
Class DownloadEvent

java.lang.Object
  |
  +--net.sf.bloof.util.DownloadEvent

public class DownloadEvent
extends java.lang.Object

Event object for a download event

Version:
$Id: DownloadEvent.java,v 1.6 2003/06/28 06:51:42 pekacki Exp $
Author:
Lukasz Pekacki

Field Summary
static int END
          Event types
static int RUNNING
          Event types
static int START
          Event types
 
Constructor Summary
DownloadEvent(int aType, int aTotalSize, int aAlreadyDownloaded, java.lang.String aFileName, java.net.URL aSource)
          Main constructor
 
Method Summary
 int getAlreadyDownloaded()
          Returns the alreadyDownloaded bytes
 java.lang.String getFileName()
          Returns the fileName.
 java.net.URL getSource()
          Returns the URL of the source.
 int getTotalSize()
          Returns the totalSize in bytes
 int getType()
          Returns the type of event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

END

public static final int END
Event types

See Also:
Constant Field Values

RUNNING

public static final int RUNNING
Event types

See Also:
Constant Field Values

START

public static final int START
Event types

See Also:
Constant Field Values
Constructor Detail

DownloadEvent

public DownloadEvent(int aType,
                     int aTotalSize,
                     int aAlreadyDownloaded,
                     java.lang.String aFileName,
                     java.net.URL aSource)
Main constructor

Parameters:
aType - Type of the Event, eigher DownloadEvent.START, DownloadEvent.RUNNING or DownloadEvent.END
aTotalSize - size of the file in bytes
aAlreadyDownloaded - already downloaded bytes
aFileName - name of the file
aSource - URL of the source
Method Detail

getAlreadyDownloaded

public int getAlreadyDownloaded()
Returns the alreadyDownloaded bytes

Returns:
int

getFileName

public java.lang.String getFileName()
Returns the fileName.

Returns:
String

getSource

public java.net.URL getSource()
Returns the URL of the source.

Returns:
URL

getTotalSize

public int getTotalSize()
Returns the totalSize in bytes

Returns:
int totalSize in bytes

getType

public int getType()
Returns the type of event. Can be DownloadEvent.START, DownloadEvent.RUNNING or DownloadEvent.END

Returns:
int type of event. Can be DownloadEvent.START, DownloadEvent.RUNNING or DownloadEvent.END


Copyright © 2003 bloof@Sourceforge. All Rights Reserved.