uk.org.retep.util.monitor
Class BandwidthProgressListener
java.lang.Object
uk.org.retep.util.monitor.ProgressListenerAdaptor
uk.org.retep.util.monitor.BandwidthProgressListener
- All Implemented Interfaces:
- ProgressListener
public class BandwidthProgressListener
- extends ProgressListenerAdaptor
A ProgressListener implementation that
- Author:
- peter
|
Field Summary |
static java.lang.String |
COLUMN_NAMES
String containing the column names |
static java.lang.String |
FORMAT
Format used to populate the columns |
static java.lang.String |
SEPARATOR
Separator line to place below COLUMN_NAMES |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
COLUMN_NAMES
public static final java.lang.String COLUMN_NAMES
- String containing the column names
- See Also:
- Constant Field Values
SEPARATOR
public static final java.lang.String SEPARATOR
- Separator line to place below COLUMN_NAMES
- See Also:
- Constant Field Values
FORMAT
public static final java.lang.String FORMAT
- Format used to populate the columns
- See Also:
- Constant Field Values
BandwidthProgressListener
public BandwidthProgressListener()
showProgress
public void showProgress(long inputSize,
long outputSize)
- Description copied from interface:
ProgressListener
- Notify listners of the current progress. This method is normall used
by compression routines so the listener knows how much the input has
been compressed by
- Specified by:
showProgress in interface ProgressListener- Overrides:
showProgress in class ProgressListenerAdaptor
- Parameters:
inputSize - The current size of the input, possibly the amount read so faroutputSize - The current size of the output, probably the total size
of the compressed output
reset
public void reset()
getLatest
public long getLatest()
getInputSize
public long getInputSize()
getOutputSize
public long getOutputSize()
getStart
public long getStart()
getDuration
public long getDuration()
getDurationSeconds
public long getDurationSeconds()
getKBs
public static long getKBs(long size,
long millis)
getInputKBs
public long getInputKBs()
getOutputKBs
public long getOutputKBs()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
toString
public static java.lang.String toString(long duration,
long size)
Copyright © 1998-2010 Retep Development Group. All Rights Reserved.