org.springframework.build.aws.ant
Class TransferUtils

java.lang.Object
  extended by org.springframework.build.aws.ant.TransferUtils

abstract class TransferUtils
extends java.lang.Object

Base class with utility methods for all transfer type services.

Author:
Ben Hale

Field Summary
private static java.text.NumberFormat formatter
           
private static float KILOBYTE
           
private static float MEGABYTE
           
private static float SECOND
           
 
Constructor Summary
private TransferUtils()
           
 
Method Summary
static java.lang.String getFormattedSize(long size)
           
static java.lang.String getFormattedSpeed(long size, long time)
           
static java.lang.String getFormattedTime(long time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KILOBYTE

private static final float KILOBYTE
See Also:
Constant Field Values

MEGABYTE

private static final float MEGABYTE
See Also:
Constant Field Values

SECOND

private static final float SECOND
See Also:
Constant Field Values

formatter

private static final java.text.NumberFormat formatter
Constructor Detail

TransferUtils

private TransferUtils()
Method Detail

getFormattedSize

public static java.lang.String getFormattedSize(long size)

getFormattedTime

public static java.lang.String getFormattedTime(long time)

getFormattedSpeed

public static java.lang.String getFormattedSpeed(long size,
                                                 long time)