Venice 0.7beta

org.mov.util
Class Converter

java.lang.Object
  extended by org.mov.util.Converter

public class Converter
extends java.lang.Object

Contains a set of general conversion functions. Previously this was a grab bag of functions that converted anything to anything else. However thinking in more OO terms some of these functions better belonged elsewhere and have been moved. This class is gradually dwindling away and will be removed soon.


Constructor Summary
Converter()
           
 
Method Summary
static java.lang.String toFixedString(int number, int digits)
          Convert a number to a fixed length string of the given number of digits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
Method Detail

toFixedString

public static java.lang.String toFixedString(int number,
                                             int digits)
Convert a number to a fixed length string of the given number of digits. E.g. converting 3 to a fixed 4 digit string yields "0003".

Parameters:
number - the number to convert into a string
digits - the fixed number of digits to output
Returns:
the string

Venice 0.7beta