Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::jhelpgen::Util Class Reference

List of all members.

Static Public Member Functions

List< File > findFiles (List< File > ret, File dir, final String...extensions)
void writeFile (String contents, File f)
String readResource (String name)

Static Package Functions

String readFile (File f)

Static Private Attributes

Comparator< File > alphabeticSort

Member Function Documentation

List<File> alma::acs::jhelpgen::Util::findFiles List< File >  ret,
File  dir,
final String...  extensions
[inline, static]
 

Returns all files and directories underneath the specified dir, recursively. Files can be filtered by extensions.

Parameters:
ret results will be added to this list
dir the directory to search (recursively)
extensions only include files with these extensions
Returns:

String alma::acs::jhelpgen::Util::readFile File  f  )  [inline, static, package]
 

Reads in the file's contents, skipping all line terminators (newlines or carriage returns).

Parameters:
f the file
Returns:
the file contents (without line terminators)
Exceptions:
RuntimeException if something goes wrong

String alma::acs::jhelpgen::Util::readResource String  name  )  [inline, static]
 

Reads a resource into a string.

Parameters:
name the resource's name
Returns:
the resource's content
Exceptions:
RuntimeException if something goes wrong

void alma::acs::jhelpgen::Util::writeFile String  contents,
File  f
[inline, static]
 

Writes a string to a file.

Parameters:
contents the string to write
f the file to write
Exceptions:
RuntimeException if something goes wrong


Member Data Documentation

Comparator<File> alma::acs::jhelpgen::Util::alphabeticSort [static, private]
 

Initial value:

new Comparator<File>() { public int compare (File o1, File o2) { return o1.getName().compareTo(o2.getName()); } }


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:35 2009 for ACS Java API by doxygen 1.3.8