net.sf.tomp.util.io
Class FileUtil

java.lang.Object
  extended by net.sf.tomp.util.io.FileUtil

public class FileUtil
extends java.lang.Object

File utilities, such as getting whole file content as String.

Author:
tomp

Constructor Summary
FileUtil()
           
 
Method Summary
static java.lang.String getFileContent(java.io.File f)
           
static java.lang.String getFileContent(java.net.URL u)
           
 
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

getFileContent

public static java.lang.String getFileContent(java.io.File f)
                                       throws java.io.IOException
Parameters:
f - file to be read
Returns:
whole file content
Throws:
java.io.IOException

getFileContent

public static java.lang.String getFileContent(java.net.URL u)
                                       throws java.io.IOException
Parameters:
u - file identified by URL
Returns:
file content
Throws:
java.io.IOException


Copyright © 2004-2005 Masaryk University in Brno, Faculty of Informatics, Czech Republic. All Rights Reserved.