XCMS Toolkit

jtools
Class Directory

java.lang.Object
  extended by jtools.Directory

public class Directory
extends java.lang.Object

Constructs a list of all files in a directory that share in common a given file name extension.

Version:
1.00 - 2006/02/10
Author:
support@phillipgriffin.com

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

Directory

public Directory(java.lang.String path)
Constructor for Directory with a file name path parameter.

Parameters:
path - a file name path
Method Detail

exists

public boolean exists()
Returns boolean true if the current file exists, and false if it does not.


getFiles

public java.util.Iterator getFiles()
Returns an Iterator that contains a file.


getFiles

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

Parameters:
extension - a file name extension template for matching

getFileNames

public java.util.Iterator getFileNames()
Returns an Iterator that contains an array of file names.


getFileNames

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

Parameters:
extension - a file name extension template for matching

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.