net.sf.jour.util
Class FileUtil

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bynet.sf.jour.util.FileUtil
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConfigFileUtil

public class FileUtil
extends java.lang.RuntimeException

See Also:
Serialized Form

Nested Class Summary
static class FileUtil.FileListByDateComparator
           
 
Field Summary
protected static org.apache.log4j.Logger log
           
 
Fields inherited from class java.lang.RuntimeException
 
Constructor Summary
FileUtil()
           
 
Method Summary
 boolean deleteDir(java.io.File dir, boolean delSelf)
           
static java.net.URL getFile(java.lang.String fileName)
           
static java.net.URL getFileLocation(java.lang.String resource)
           
static java.util.HashSet readTextFile(java.io.File file)
           
static boolean readTextFile(java.io.File file, java.util.HashSet list)
           
static java.io.File[] sortFileListByDate(java.io.File[] children)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

FileUtil

public FileUtil()
Method Detail

getFileLocation

public static java.net.URL getFileLocation(java.lang.String resource)

getFile

public static java.net.URL getFile(java.lang.String fileName)

deleteDir

public boolean deleteDir(java.io.File dir,
                         boolean delSelf)

readTextFile

public static java.util.HashSet readTextFile(java.io.File file)

readTextFile

public static boolean readTextFile(java.io.File file,
                                   java.util.HashSet list)

sortFileListByDate

public static java.io.File[] sortFileListByDate(java.io.File[] children)


Copyright © 2004 sourceforge. All Rights Reserved.