public class ProgressMonitor
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
ProgressMonitor(java.nio.channels.FileChannel channel,
IClientListener listener,
long size)
Monitor constructor.
|
ProgressMonitor(java.nio.channels.FileChannel channel,
IClientListener listener,
long size,
int checkInterval)
Monitor constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
monitor the transfer
|
public ProgressMonitor(java.nio.channels.FileChannel channel, IClientListener listener, long size)
channel
- The file channellistener
- The client listenersize
- The size of a file to transferpublic ProgressMonitor(java.nio.channels.FileChannel channel, IClientListener listener, long size, int checkInterval)
channel
- The file channellistener
- The client listenersize
- The size of a file to transfercheckInterval
- The interval for checking file transfer statusstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.