|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjtools.Directory
public class Directory
Constructs a list of all files in a directory that share in common a given file name extension.
| Constructor Summary | |
|---|---|
Directory(java.lang.String path)
Constructor for Directory with a file name path parameter. |
|
| Method Summary | |
|---|---|
boolean |
exists()
Returns boolean true if the current
file exists, and false if it does not. |
java.util.Iterator |
getFileNames()
Returns an Iterator that contains an array of file names. |
java.util.Iterator |
getFileNames(java.lang.String extension)
Returns an Iterator that contains an array of file names
of all files that end with the specified extension. |
java.util.Iterator |
getFiles()
Returns an Iterator that contains a file. |
java.util.Iterator |
getFiles(java.lang.String extension)
Returns an Iterator that contains a file containing all
files that end with the specified file name extension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Directory(java.lang.String path)
Directory with a file name path parameter.
path - a file name path| Method Detail |
|---|
public boolean exists()
boolean true if the current
file exists, and false if it does not.
public java.util.Iterator getFiles()
Iterator that contains a file.
public java.util.Iterator getFiles(java.lang.String extension)
Iterator that contains a file containing all
files that end with the specified file name extension.
extension - a file name extension template for matchingpublic java.util.Iterator getFileNames()
Iterator that contains an array of file names.
public java.util.Iterator getFileNames(java.lang.String extension)
Iterator that contains an array of file names
of all files that end with the specified extension.
extension - a file name extension template for matching
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||