comirva.util.external
Class TextFormatTool

java.lang.Object
  extended by comirva.util.external.TextFormatTool

public class TextFormatTool
extends Object

This class implements some tools for converting and formating text (especially HTML).


Constructor Summary
TextFormatTool()
           
 
Method Summary
static String colorToHtml(Color col)
           
static Color htmlToColor(String col)
           
static void intArrayToFile(int[] intarray, File file)
           
static String leadingDoubleZero(String s)
           
static String leadingZero(String s)
           
static String readInFile(File file)
           
static int[] readInIntArray(File file)
           
static String[] readInStringArray(File file)
           
static String removeUnwantedChars(String s)
           
static void stringToFile(String content, File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFormatTool

public TextFormatTool()
Method Detail

colorToHtml

public static String colorToHtml(Color col)

htmlToColor

public static Color htmlToColor(String col)

removeUnwantedChars

public static String removeUnwantedChars(String s)

leadingZero

public static String leadingZero(String s)

leadingDoubleZero

public static String leadingDoubleZero(String s)

stringToFile

public static void stringToFile(String content,
                                File file)

intArrayToFile

public static void intArrayToFile(int[] intarray,
                                  File file)

readInFile

public static String readInFile(File file)
                         throws Exception
Throws:
Exception

readInStringArray

public static String[] readInStringArray(File file)
                                  throws Exception
Throws:
Exception

readInIntArray

public static int[] readInIntArray(File file)
                            throws Exception
Throws:
Exception