Quick Search QZarch
- Quick Search
  Code sample

The home

The features
The requirements
The technologies
The design
The dependencies
The outcome

The APIs
The coverage

The download

The development
The users

Search:

The core of the search engine

By using high-level libraries for file utilities, the core of the search engine does two things

  1. Identify the files to scan based on base directories and file types.
  2. Scan the files for the search phrases.

Should you really be concerned about more than this?
  // here we go...
  long timeStart = System.currentTimeMillis();
  
  File[] filesToScan = Find.byDirectoryAndType(directory, fileType);
  File[] matches = Edit.search(filesToScan, searchString);
  
  long timeEnd = System.currentTimeMillis();
Hosted by:   Built by:   Tested with:   Coverage by:  
QZarch at SourceForge.net   Ant   JUnit   Coverage Lover QZarch at SourceForge.net The site is rendered using SiteMesh