public class HttpProgressEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
MODE_DOWNLOAD
Download mode
|
static int |
MODE_UPLOAD
Upload mode
|
Constructor and Description |
---|
HttpProgressEvent(java.lang.Object source,
java.lang.String url,
long bytes,
int mode)
Constructs a new
HttpProgressEvent . |
Modifier and Type | Method and Description |
---|---|
long |
getBytes()
Get the number of bytes transferred so far.
|
int |
getMode()
Gets transfer mode of event.
|
java.lang.String |
getURL()
Gets the String representation of the URL this event is associated with.
|
public static final int MODE_DOWNLOAD
public static final int MODE_UPLOAD
public HttpProgressEvent(java.lang.Object source, java.lang.String url, long bytes, int mode)
HttpProgressEvent
.source
- the source of this eventurl
- String representation of the URL
associated with this eventbytes
- The number of bytes transferred so far.mode
- the transfer modeMODE_UPLOAD
,
MODE_DOWNLOAD
public java.lang.String getURL()
URL
public long getBytes()
public int getMode()
MODE_UPLOAD
,
MODE_DOWNLOAD
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved