|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.gui.init.FileScan
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 |
public FileScan()
Method Detail |
public void setExtensions(java.lang.String[] e)
public void setFilters(java.lang.String[] f)
public java.lang.String[] getListAsArray()
public java.lang.String getListAsString()
public void scan(java.lang.String pathname)
public void scan(java.lang.String[] pathnames)
public void scan(java.lang.String[] pathnames, int depth)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |