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

Class com.jconfig.nix.FileIteratorNix
java.lang.Object
   |
   +----com.jconfig.nix.FileIteratorNix

  Summary

class  FileIteratorNix
     extends java.lang.Object
{
          // Fields 4
     private static final String copyrightString;
     private static final int kPTDFGotFalse;
     private static final int kPTDFGotTrue;
     private static final int kPTDFNotAMatch;

          // Constructors 1
     private FileIteratorNix();

          // Methods 2
     private static int presentToDiskFilter(DiskFilter, int, File, String);
     public static int runDiskFilter(String, DiskFilter, int, int);

}

A singleton which contains a method which iterates over the files in a directory.

Author:
Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.




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


  Constructors

· FileIteratorNix

Summary  |  Top

   private FileIteratorNix() 


  Methods

· runDiskFilter

Summary  |  Top
   public 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, 
                                          File par, 
                                          String name) 

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  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7