com.aurigalogic.doclet.util
Class Util

java.lang.Object
  |
  +--com.aurigalogic.doclet.util.Util

public class Util
extends java.lang.Object

Utility class

Version:
$Revision: 1.1.1.1 $ $Date: 2003/12/24 12:38:12 $
Author:
Khurshidali Shaikh

Method Summary
static java.lang.String readFile(java.lang.String path)
          Reads a file and returns the content as string.
static java.lang.String tidy(java.lang.String html)
          Cleans the given html using Tidy.
static void writeFile(java.lang.String path, java.lang.String content)
          Writes the given given text to the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readFile

public static java.lang.String readFile(java.lang.String path)
                                 throws java.lang.Exception
Reads a file and returns the content as string.

java.lang.Exception

writeFile

public static void writeFile(java.lang.String path,
                             java.lang.String content)
                      throws java.lang.Exception
Writes the given given text to the specified file.

java.lang.Exception

tidy

public static java.lang.String tidy(java.lang.String html)
Cleans the given html using Tidy.