public class ProgressUpdateEvent extends ComponentEvent<Upload>
source| Constructor and Description |
|---|
ProgressUpdateEvent(Upload source,
long readBytes,
long contentLength)
Event constructor method to construct a new progress event.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength()
Get total file size.
|
long |
getReadBytes()
Get bytes transferred for this update.
|
Upload |
getUpload()
Upload where the event occurred.
|
getSource, isFromClient, unregisterListenertoStringpublic ProgressUpdateEvent(Upload source, long readBytes, long contentLength)
source - the source of the filereadBytes - bytes transferredcontentLength - total size of file currently being uploaded, -1 if unknownpublic Upload getUpload()
public long getReadBytes()
public long getContentLength()
Copyright © 2025. All rights reserved.