@FunctionalInterface public interface IProgressListener extends Serializable
IProgressListener may be used to display a progress bar or do
stuff like that.| Modifier and Type | Method and Description |
|---|---|
void |
update(long nBytesRead,
long nContentLength,
int nItems)
Updates the listeners status information.
|
void update(@Nonnegative long nBytesRead, @CheckForSigned long nContentLength, @Nonnegative int nItems)
nBytesRead - The total number of bytes, which have been read so far. Always ≥
0.nContentLength - The total number of bytes, which are being read. May be -1, if this
number is unknown.nItems - The number of the field, which is currently being read. (0 = no item
so far, 1 = first item is being read, ...)Copyright © 2014–2019 Philip Helger. All rights reserved.