dochelper.util.FileUtils Class Reference

The class FileUtils groups file handling utility methods. More...

List of all members.

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.


Detailed Description

The class 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.


Constructor & Destructor Documentation

dochelper.util.FileUtils.FileUtils (  ) 

Creates a new instance of FileUtils.

Definition at line 44 of file FileUtils.java.


Member Function Documentation

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).

Parameters:
glob The glob pattern
Returns:

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.

Parameters:
path 
Returns:

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.

Parameters:
file 
Returns:
Exceptions:
FileNotFoundException 
IOException 

Definition at line 150 of file FileUtils.java.


The documentation for this class was generated from the following file:

Generated on Wed Jun 17 14:22:20 2009 for DocHelper by  doxygen 1.5.6