FileUtils groups file handling utility methods.
More...
Public Member Functions | |
| FileUtils () | |
| Creates a new instance of FileUtils. | |
Static Public Member Functions | |
| static String | globToRE (String glob) |
| Converts a Unix-style glob to a regular expression. | |
| static File[] | _listDirectory (String path) |
| List the contents of a directory of fail. | |
| static String | FileToString (File file) throws FileNotFoundException, IOException |
| Read a file as text and return a String. | |
FileUtils groups file handling utility methods.
The globToRE and listDirectories methods are courtesy of JEdit source code (MiscUtilities.java) also under the GNU General Public License. Pertinent notice follows:
Copyright (C) 1999, 2004 Slava Pestov Portions copyright (C) 2000 Richard S. Hall Portions copyright (C) 2001 Dirk Moebius
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.
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.
Definition at line 41 of file FileUtils.java.
| dochelper.util.FileUtils.FileUtils | ( | ) |
| static String dochelper.util.FileUtils.globToRE | ( | String | glob | ) | [static] |
Converts a Unix-style glob to a regular expression.
? becomes ., * becomes .*, {aa,bb} becomes (aa|bb).
| glob | The glob pattern |
Definition at line 54 of file FileUtils.java.
| static File [] dochelper.util.FileUtils._listDirectory | ( | String | path | ) | [static] |
List the contents of a directory of fail.
| path |
Definition at line 131 of file FileUtils.java.
| static String dochelper.util.FileUtils.FileToString | ( | File | file | ) | throws FileNotFoundException, IOException [static] |
Read a file as text and return a String.
| file |
| FileNotFoundException | ||
| IOException |
Definition at line 150 of file FileUtils.java.
1.5.6