org.freecompany.brimstone.main
public class Formatter extends Object
Field Summary | |
---|---|
protected long | current |
protected static int | length |
protected String | name |
protected boolean | showCurrent |
protected boolean | showTotal |
protected PrintStream | stream |
protected static String[] | SUFFIXES |
protected long | total |
Constructor Summary | |
---|---|
Formatter(String name, 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. |
Method Summary | |
---|---|
void | finish() |
protected String | format(float number, int count) |
protected String | format() |
void | read(int read) |
void | setTotal(long total) |
void | showCurrent(boolean showCurrent) |
void | showTotal(boolean showTotal) |