com.mmm.cms.util
Class HexavigesimalFormat

java.lang.Object
  extended by java.text.Format
      extended by java.text.NumberFormat
          extended by com.mmm.cms.util.HexavigesimalFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class HexavigesimalFormat
extends java.text.NumberFormat

This formatted provides the conversion of a number to the Hexavigesmal value with the possibility of handling 26 unique values. An integer value 26 or above is reduce to Z

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.NumberFormat
java.text.NumberFormat.Field
 
Field Summary
 
Fields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
 
Constructor Summary
HexavigesimalFormat()
           
 
Method Summary
 java.lang.StringBuffer format(double number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
          Not supported
 java.lang.StringBuffer format(long number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
          This format uses the following Characters indicators for the following values: 0 or 1 = A 2 = B 3 = C 4 = D 5 = E 6 = F 7 = G 8 = H 9 = I 10 = J 11 = K 12 = L 13 = M 14 = N 15 = O 16 = P 17 = Q 18 = R 19 = S 20 = T 21 = U 22 = V 23 = W 24 = X 25 = Y 26 = Z Any number > 26 will become a multi character string
static void main(java.lang.String[] args)
          Main testing module.
 java.lang.Number parse(java.lang.String source, java.text.ParsePosition parsePosition)
          Not supported
 
Methods inherited from class java.text.NumberFormat
clone, equals, format, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly
 
Methods inherited from class java.text.Format
format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexavigesimalFormat

public HexavigesimalFormat()
Method Detail

main

public static void main(java.lang.String[] args)
Main testing module.

Parameters:
args -

format

public java.lang.StringBuffer format(double number,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
Not supported

Specified by:
format in class java.text.NumberFormat
Parameters:
number -
toAppendTo -
pos -
Returns:

format

public java.lang.StringBuffer format(long number,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
This format uses the following Characters indicators for the following values: 0 or 1 = A 2 = B 3 = C 4 = D 5 = E 6 = F 7 = G 8 = H 9 = I 10 = J 11 = K 12 = L 13 = M 14 = N 15 = O 16 = P 17 = Q 18 = R 19 = S 20 = T 21 = U 22 = V 23 = W 24 = X 25 = Y 26 = Z Any number > 26 will become a multi character string

Specified by:
format in class java.text.NumberFormat
Parameters:
number -
toAppendTo -
pos -
Returns:

parse

public java.lang.Number parse(java.lang.String source,
                              java.text.ParsePosition parsePosition)
Not supported

Specified by:
parse in class java.text.NumberFormat
Parameters:
source -
parsePosition -
Returns: