|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.fileupload.MultipartStream.ProgressNotifier
static class MultipartStream.ProgressNotifier
Internal class, which is used to invoke the
ProgressListener.
| Field Summary | |
|---|---|
private long |
bytesRead
Number of bytes, which have been read so far. |
private long |
contentLength
Number of expected bytes, if known, or -1. |
private int |
items
Number of items, which have been read so far. |
private ProgressListener |
listener
The listener to invoke. |
| Constructor Summary | |
|---|---|
MultipartStream.ProgressNotifier(ProgressListener pListener,
long pContentLength)
Creates a new instance with the given listener and content length. |
|
| Method Summary | |
|---|---|
(package private) void |
noteBytesRead(int pBytes)
Called to indicate that bytes have been read. |
(package private) void |
noteItem()
Called to indicate, that a new file item has been detected. |
private void |
notifyListener()
Called for notifying the listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final ProgressListener listener
private final long contentLength
private long bytesRead
private int items
| Constructor Detail |
|---|
MultipartStream.ProgressNotifier(ProgressListener pListener,
long pContentLength)
pListener - The listener to invoke.pContentLength - The expected content length.| Method Detail |
|---|
void noteBytesRead(int pBytes)
pBytes - Number of bytes, which have been read.void noteItem()
private void notifyListener()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||