|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.common.util.FormatUtils
public class FormatUtils
Field Summary | |
---|---|
protected static SimpleFormatter |
SF
|
Constructor Summary | |
---|---|
FormatUtils()
|
Method Summary | |
---|---|
static String |
getCount(long count)
Return a formatted count |
static String |
getDate(Date date)
Return a formatted date |
static String |
getDate(long millis)
Return a formatted date |
static String |
getFormattedSize(long bytes,
Size size)
|
static String |
getRate(long millis,
long bytes)
Given a number of bytes and the number of milliseconds it took to transfer that number of bytes, return bytes/s, KB/s, MB/s, GB/s, TB/s, PB/s, or EB/s as appropriate |
static String |
getSize(long bytes)
Given a number of bytes return bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, or exabytes as appropriate. |
static String |
getSize(long bytes,
Size unitOfMeasure)
Given a number of bytes return a string formatted into the unit of measure indicated |
static Size |
getSizeEnum(double bytes)
|
static String |
getTime(long millis)
Given milliseconds, return milliseconds, seconds, minutes, hours, days, years, decades, or centuries as appropriate. |
static Date |
parseDate(String date)
Parse a date from the string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static SimpleFormatter SF
Constructor Detail |
---|
public FormatUtils()
Method Detail |
---|
public static Date parseDate(String date)
public static String getDate(long millis)
public static String getDate(Date date)
public static String getRate(long millis, long bytes)
public static String getCount(long count)
count
public static String getTime(long millis)
public static String getSize(long bytes)
public static String getSize(long bytes, Size unitOfMeasure)
public static String getFormattedSize(long bytes, Size size)
public static Size getSizeEnum(double bytes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |