Examples of FThenDArray


Examples of com.uic.ase.proj.xbn.util.FThenDArray

      bContentsAnalyzed = true;
      return;
    }

    //There is at least one file/dir in this directory.
    FThenDArray aFTD = new FThenDArray(aSubFiles);

    //Get all sub-files/dirs...START
      VWObject acoSubDirs = new VWObject();
      VWObject acoSubFiles = new VWObject();


      DirFile df = null;

      String sRelDirForSub = null;
      if(aFTD.hasMoreFiles()  ||  aFTD.hasMoreDirs())  {
        if(getRelDir().length() < 1)  {
          sRelDirForSub = sES;
        else  {
          sRelDirForSub = getRelDir() + File.separator;
        }

        sRelDirForSub +=  getFileObjThis().getName();
      }

      //First:  Process all sub-files.
      while(aFTD.hasMoreFiles())  {
        File fFile = aFTD.getNextFile();
        //This is a file.
        //A what?  A file.  A what?  A file.  Oh, a file.

        o_utputter.writeNoln(".");

        //The final "null" parameter is the FileFilter.  We're
        //definitely not going to analyze sub-files (files don't
        //*have* sub-files!), so there's no need to provide a
        //FileFilter.
        df = new DirFile(getFileObjBaseDir(), sRelDirForSub, fFile, getLevelsToAnalyze(), (getLevelsBelowBaseDir() + 1), null, o_utputter);

        acoSubFiles.add(df);
      }
      //All sub-files have been processed.


      //Second, process all sub-directories.
      while(aFTD.hasMoreDirs())  {
        File fDir = aFTD.getNextDir();

        //Do we need to analyze the contents of this
        //directory?
        int iLevelsToAnalyzeInSubObjects = -2;
        boolean bNeedToAnalyzeSubDir = false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.