FileDocCategorySizeDatePackage
NumberFormatter.javaAPI DocApache Poi 3.0.13911Mon Jan 01 18:55:24 GMT 2007org.apache.poi.hdf.extractor.util

NumberFormatter

public class NumberFormatter extends Object
Comment me
author
Ryan Ackley

Fields Summary
private static final int
ARABIC
private static final int
UPPER_ROMAN
private static final int
LOWER_ROMAN
private static final int
UPPER_LETTER
private static final int
LOWER_LETTER
private static final int
ORDINAL
private static String[]
_arabic
private static String[]
_roman
private static String[]
_letter
Constructors Summary
public NumberFormatter()

   
  
  
Methods Summary
public static java.lang.StringgetNumber(int num, int style)

    switch(style)
    {
      case ARABIC:
        return _arabic[num - 1];
      case UPPER_ROMAN:
        return _roman[num-1].toUpperCase();
      case LOWER_ROMAN:
        return _roman[num-1];
      case UPPER_LETTER:
        return _letter[num-1].toUpperCase();
      case LOWER_LETTER:
        return _letter[num-1];
      case ORDINAL:
        return _arabic[num - 1];
      default:
        return _arabic[num - 1];
    }