com.limegroup.gnutella.gui.init
Class FileScan

java.lang.Object
  extended bycom.limegroup.gnutella.gui.init.FileScan

public class FileScan
extends java.lang.Object

At either run time or the first time the client is run, this class will scan the entire hard drive searching for files with particular file extensions (like .mp3). It will keep track of the directories in which those files exist, and will return the top 5 directories. The top five are chosen by some combination of number of files and memory.


Constructor Summary
FileScan()
           
 
Method Summary
 java.lang.String[] getListAsArray()
          Returns the list of directories containing shared file types as an array of strings.
 java.lang.String getListAsString()
          Returns the list of directories containing shared file types as one long strings.
 void scan(java.lang.String pathname)
          Scans the directory associated with the string parameter for directories containing shared file types.
 void scan(java.lang.String[] pathnames)
          .
 void scan(java.lang.String[] pathnames, int depth)
          .
 void setExtensions(java.lang.String[] e)
          Sets the shared extensions to use for searching.
 void setFilters(java.lang.String[] f)
          Sets the words to use as filters for determining potential shared directories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileScan

public FileScan()
Method Detail

setExtensions

public void setExtensions(java.lang.String[] e)
Sets the shared extensions to use for searching.


setFilters

public void setFilters(java.lang.String[] f)
Sets the words to use as filters for determining potential shared directories.


getListAsArray

public java.lang.String[] getListAsArray()
Returns the list of directories containing shared file types as an array of strings.


getListAsString

public java.lang.String getListAsString()
Returns the list of directories containing shared file types as one long strings.


scan

public void scan(java.lang.String pathname)
Scans the directory associated with the string parameter for directories containing shared file types.


scan

public void scan(java.lang.String[] pathnames)
.


scan

public void scan(java.lang.String[] pathnames,
                 int depth)
.