public class IOProgressListenerVector extends java.lang.Object implements IOProgressListener
Constructor and Description |
---|
IOProgressListenerVector() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(IOProgressListener listener) |
void |
clear() |
IOProgressListener |
get(int pos) |
void |
ioFinished()
This method is called when a reading or writing of data has been finished.
|
void |
ioProgress(long bytes)
This method is called when a progress in reading or writing data has been made.
|
void |
ioStarts()
This method is called when a reading or writing of data is about to begin.
|
void |
newFile(java.lang.String sourceName,
java.lang.String destName,
long size)
This method is called only if the progress listeners is passed to a method that processes
several files.
|
boolean |
remove(IOProgressListener listener) |
int |
size() |
public IOProgressListenerVector()
public void ioStarts()
IOProgressListener
ioStarts
in interface IOProgressListener
public void ioProgress(long bytes)
IOProgressListener
ioProgress
in interface IOProgressListener
bytes
- the number of bytes that have been read or written until yet.public void newFile(java.lang.String sourceName, java.lang.String destName, long size)
IOProgressListener
newFile
in interface IOProgressListener
sourceName
- the name of the current source file.destName
- the name of the current destination filesize
- the size in bytes of the current filepublic void ioFinished()
IOProgressListener
ioFinished
in interface IOProgressListener
public boolean add(IOProgressListener listener)
public IOProgressListener get(int pos)
public void clear()
public boolean remove(IOProgressListener listener)
public int size()