water
Class PrettyPrint

java.lang.Object
  extended by water.PrettyPrint

public class PrettyPrint
extends java.lang.Object


Field Summary
static java.lang.String[] SCALE
           
 
Constructor Summary
PrettyPrint()
           
 
Method Summary
static java.lang.String bytes(long bytes)
           
static java.lang.String bytes(long bytes, int scale)
           
static int byteScale(long bytes)
           
static java.lang.String bytesPerSecond(long bytes)
           
static double bytesScaled(long bytes, int scale)
           
static java.lang.String msecs(long msecs, boolean truncate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCALE

public static final java.lang.String[] SCALE
Constructor Detail

PrettyPrint

public PrettyPrint()
Method Detail

msecs

public static java.lang.String msecs(long msecs,
                                     boolean truncate)

byteScale

public static int byteScale(long bytes)

bytesScaled

public static double bytesScaled(long bytes,
                                 int scale)

bytes

public static java.lang.String bytes(long bytes)

bytes

public static java.lang.String bytes(long bytes,
                                     int scale)

bytesPerSecond

public static java.lang.String bytesPerSecond(long bytes)