org.freecompany.brimstone.main
Class Formatter
java.lang.Object
org.freecompany.brimstone.main.Formatter
public class Formatter
- extends java.lang.Object
Constructor Summary |
Formatter(java.lang.String name,
java.io.PrintStream stream)
If stream is null then we use system output, but don't provide realtime updates
as certain applications (Ant) hijack System.out and provide one that does
not handle carriage returns gracefully. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUFFIXES
protected static final java.lang.String[] SUFFIXES
length
protected static final int length
- See Also:
- Constant Field Values
showTotal
protected boolean showTotal
showCurrent
protected boolean showCurrent
stream
protected final java.io.PrintStream stream
name
protected java.lang.String name
total
protected long total
current
protected long current
Formatter
public Formatter(java.lang.String name,
java.io.PrintStream stream)
- If stream is null then we use system output, but don't provide realtime updates
as certain applications (Ant) hijack
System.out
and provide one that does
not handle carriage returns gracefully.
showTotal
public void showTotal(boolean showTotal)
showCurrent
public void showCurrent(boolean showCurrent)
setTotal
public void setTotal(long total)
format
protected java.lang.String format(float number,
int count)
read
public void read(int read)
finish
public void finish()
format
protected java.lang.String format()