org.hyperic.util
Class TextProgressBar
java.lang.Object
org.hyperic.util.TextProgressBar
public class TextProgressBar
- extends java.lang.Object
Constructor Summary |
TextProgressBar(java.io.PrintStream out,
java.lang.String name,
long total)
Initialize the progress bar |
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
print()
|
void |
print(long current)
|
void |
setRefresh(long refresh)
|
void |
update(long current)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextProgressBar
public TextProgressBar(java.io.PrintStream out,
java.lang.String name,
long total)
- Initialize the progress bar
- Parameters:
os
- Stream to use for writing the progress statusname
- The name of the file being transferredtotal
- Total bytes for completion
setRefresh
public void setRefresh(long refresh)
update
public void update(long current)
print
public void print(long current)
print
public void print()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.