|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.common.util.FileUtil
public class FileUtil
.
|
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence| Field Summary | |
|---|---|
static String |
EXTENSION_JAVA
Extension for java files |
static String |
EXTENSION_PROPERTIES
Extension for properties files |
static String |
EXTENSION_XML
Extension for XML files |
static String |
EXTENSION_XSLT
Extension for XSLT files |
static String |
MODE_READ
Modes for opening random access files |
static String |
MODE_WRITE
Modes for opening random access files |
| Constructor Summary | |
|---|---|
private |
FileUtil()
Prevent Instansiation |
| Method Summary | |
|---|---|
static List |
delete(File file)
Deletes a file or a directory and all of its contents |
private static void |
deleteContents(File dirPath,
List failures)
Recursive delete files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EXTENSION_JAVA
public static final String EXTENSION_PROPERTIES
public static final String EXTENSION_XSLT
public static final String EXTENSION_XML
public static final String MODE_READ
public static final String MODE_WRITE
| Constructor Detail |
|---|
private FileUtil()
| Method Detail |
|---|
public static List delete(File file)
file - or directory to delete
private static void deleteContents(File dirPath,
List failures)
dirPath - directory of files to deletefailures - the list of files that could not be deleted
|
Copyright ? 2003-2004 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||