Main Page
Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix · OSX ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix · OSX ] Distribution Issues |
All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.jconfig.win.FileIteratorMSVM
Summary |
class FileIteratorMSVM extends java.lang.Object { // Fields 5 private static final String copyrightString; private static final int kErrFindNextFileNoMoreFiles; private static final int kPTDFGotFalse; private static final int kPTDFGotTrue; private static final int kPTDFNotAMatch; // Constructors 1 private FileIteratorMSVM(); // Methods 2 private static int presentToDiskFilter(DiskFilter, int, String, String, int); static int runDiskFilter(String, DiskFilter, int, int); }
A singleton which contains a method which iterates over the files in a directory.
Fields |
· copyrightString | Summary | Top |
private static final String copyrightString
· kPTDFGotFalse | Summary | Top |
private static final int kPTDFGotFalse
Return value from the private method presentToDiskFilter().
· kPTDFGotTrue | Summary | Top |
private static final int kPTDFGotTrue
Return value from the private method presentToDiskFilter().
· kPTDFNotAMatch | Summary | Top |
private static final int kPTDFNotAMatch
Return value from the private method presentToDiskFilter().
· kErrFindNextFileNoMoreFiles | Summary | Top |
private static final int kErrFindNextFileNoMoreFiles
See the 'runDiskFilter' method.
Constructors |
· FileIteratorMSVM | Summary | Top |
private FileIteratorMSVM()
Methods |
· runDiskFilter | Summary | Top |
static int runDiskFilter(String thePath, DiskFilter filter, int flags, int maxToIterate)
Iterates over the files in the given directory, and presents them to a DiskFilter object. Uses the 'nativeFindFirstFile' and related methods to obtain the list of files. Calls 'presentToDiskFilter' to present each files to the DiskFilter.
Parameter Description thePath the full path to the directory. flags indicates what types of files to present to the DiskFilter. flags one or more of the flags defined in DiskFilter.java maxToIterate indicates the maximum number of files to present.
· presentToDiskFilter | Summary | Top |
private static int presentToDiskFilter(DiskFilter filter, int flags, String path, String name, int attrs)
Called by 'runDiskFilter()' to present the given file to a DiskFilter object. Calls the DiskFilter's visit() method with the file.
Parameter Description name the name of the file path the directory containing the file attrs the attributes of the file flags one or more of the flags defined in DiskFilter.java
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7