comirva.util.external
Class TextFormatTool
java.lang.Object
comirva.util.external.TextFormatTool
public class TextFormatTool
- extends Object
This class implements some tools for converting and formating
text (especially HTML).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextFormatTool
public TextFormatTool()
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