net.sf.logdistiller.util
Class FormatUtil

java.lang.Object
  extended by net.sf.logdistiller.util.FormatUtil

public class FormatUtil
extends Object


Method Summary
static String formatFraction(long part, long total)
          Formats a fraction as a "xx.x%" string.
static String formatPeriod(long periodMs)
           
static String formatSize(long size)
           
static String join(String separator, Iterator iter)
           
static String join(String separator, List list)
           
static String join(String separator, Object[] values)
           
static String join(String separator, Set set)
           
static Locale parseLocale(String locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

formatPeriod

public static String formatPeriod(long periodMs)

formatSize

public static String formatSize(long size)

formatFraction

public static String formatFraction(long part,
                                    long total)
Formats a fraction as a "xx.x%" string.

Parameters:
part - int the portion of the total
total - int the total
Returns:
String the value of (fraction / total) as "xx.x%"

join

public static String join(String separator,
                          Iterator iter)

join

public static String join(String separator,
                          Object[] values)

join

public static String join(String separator,
                          List list)

join

public static String join(String separator,
                          Set set)

parseLocale

public static Locale parseLocale(String locale)


Copyright © 2004-2009. All Rights Reserved.