net.sf.jour.util
Class FileUtil

java.lang.Object
  extended by net.sf.jour.util.FileUtil
Direct Known Subclasses:
ConfigFileUtil

public class FileUtil
extends java.lang.Object


Nested Class Summary
static class FileUtil.FileListByDateComparator
           
static class FileUtil.FileListByNameComparator
           
 
Field Summary
protected static Logger log
           
 
Constructor Summary
FileUtil()
           
 
Method Summary
static void closeQuietly(java.io.InputStream input)
           
static void closeQuietly(java.io.OutputStream out)
           
static boolean deleteDir(java.io.File dir, boolean delSelf)
           
static java.net.URL getFile(java.lang.String fileName)
           
static java.net.URL getFile(java.lang.String fileName, java.lang.ClassLoader loader)
           
static java.net.URL getFile(java.lang.String fileName, java.lang.Object owner)
           
static java.net.URL getFileLocation(java.lang.String resource)
           
static java.net.URL getFileLocation(java.lang.String resource, java.lang.ClassLoader loader)
           
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)
           
static java.io.File[] sortFileListByName(java.io.File[] children)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log
Constructor Detail

FileUtil

public FileUtil()
Method Detail

getFileLocation

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

getFileLocation

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

getFile

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

getFile

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

getFile

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

deleteDir

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

closeQuietly

public static void closeQuietly(java.io.InputStream input)

closeQuietly

public static void closeQuietly(java.io.OutputStream out)

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)

sortFileListByName

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


Copyright © 2004-2008 pyx4j.com. All Rights Reserved.