|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.kuali.maven.wagon.SimpleFormatter
public class SimpleFormatter
Very simple formatter for formatting a few things - transfer rate, elapsed time, bytes
| Constructor Summary | |
|---|---|
SimpleFormatter()
|
|
| Method Summary | |
|---|---|
String |
getRate(long millis,
long bytes)
Given milliseconds and bytes return kilobytes per second |
String |
getSize(long bytes)
Given bytes, return kilobytes if it is less than a megabyte, megabytes if it is less than a gigabyte, otherwise gigabytes |
String |
getTime(long millis)
Given milliseconds, return seconds or minutes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleFormatter()
| Method Detail |
|---|
public String getRate(long millis,
long bytes)
public String getTime(long millis)
public String getSize(long bytes)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||