solar.util
Class FileUtil

java.lang.Object
  |
  +--solar.util.FileUtil

public class FileUtil
extends java.lang.Object

Some utilities regarding files.

Version:
$Id: FileUtil.java,v 1.2 2003/07/18 02:10:22 glchen Exp $
Author:
Guanling Chen

Constructor Summary
FileUtil()
           
 
Method Summary
static java.lang.String getContent(java.io.File file)
          Return the content of a file as a string.
private static java.lang.String getContent(java.io.FileReader fr)
           
static java.lang.String getContent(java.lang.String filename)
          Return the content of a file as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

getContent

public static java.lang.String getContent(java.lang.String filename)
                                   throws java.io.IOException
Return the content of a file as a string.

java.io.IOException

getContent

public static java.lang.String getContent(java.io.File file)
                                   throws java.io.IOException
Return the content of a file as a string.

java.io.IOException

getContent

private static java.lang.String getContent(java.io.FileReader fr)
                                    throws java.io.IOException
java.io.IOException