|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfiletools.filesearchtools.SimpleFileSearch
filetools.filesearchtools.MatlabfunctionFileSearch
public class MatlabfunctionFileSearch
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_FILENAME
|
static java.lang.String |
DEFAULT_SYNCFILENAME
|
private java.util.Vector<java.lang.String> |
dirExceptions
Keeps a list of directory names which shouldn't be searched |
private static java.lang.String |
HTML_EXTENSION
|
protected java.io.FileWriter |
outputFileWriter
|
protected java.util.Vector<java.lang.String> |
syncDirs
List of directories which will be searched for the helpfiles |
protected boolean |
syncExisting
Specifies if files with (true) or without (false) a corresponding helpfile will be listed in the syncfile |
protected java.io.FileWriter |
syncFileWriter
|
Constructor Summary | |
---|---|
MatlabfunctionFileSearch(java.io.File outputFile,
java.io.File syncFile,
java.util.Vector<java.lang.String> syncDirs,
boolean syncExisting)
Only constructor. |
Method Summary | |
---|---|
protected boolean |
isDirToSearch(java.lang.String dir)
Derived classes need to define here which directories should be searched. |
protected boolean |
isSearchedFileName(java.lang.String filename)
Derived classes need to define here which files are searched. |
private boolean |
isSynchronizing()
Tells if a syncfile is requested. |
static void |
main(java.lang.String[] args)
Starts a new file-search with the specified params |
protected void |
processFile(java.io.File file)
Here concrete classes need to define what to do with a searched file which was found. |
private boolean |
startsWithUppercase(java.lang.String string)
Tells if the given string starts with an uppercase letter. |
Methods inherited from class filetools.filesearchtools.SimpleFileSearch |
---|
searchDir |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_FILENAME
public static final java.lang.String DEFAULT_SYNCFILENAME
private static final java.lang.String HTML_EXTENSION
protected java.io.FileWriter outputFileWriter
protected java.io.FileWriter syncFileWriter
private java.util.Vector<java.lang.String> dirExceptions
protected java.util.Vector<java.lang.String> syncDirs
protected boolean syncExisting
Constructor Detail |
---|
public MatlabfunctionFileSearch(java.io.File outputFile, java.io.File syncFile, java.util.Vector<java.lang.String> syncDirs, boolean syncExisting)
outputFile
- File in which the list of found functions will be writtensyncFile
- File in which the output of the syncronizing process will be writtensyncDirs
- List of directories which will be searched
for the helpfilessyncExisting
- Specifies if files with (true) or without (false) a corresponding
helpfile will be listed in the syncfileMethod Detail |
---|
public static void main(java.lang.String[] args)
args
- Contains the filenames and directoriesprotected void processFile(java.io.File file)
SimpleFileSearch
processFile
in class SimpleFileSearch
file
- File object which represents the found fileSimpleFileSearch.processFile(java.io.File)
private boolean isSynchronizing()
private boolean startsWithUppercase(java.lang.String string)
string
- String to examine
protected boolean isDirToSearch(java.lang.String dir)
SimpleFileSearch
isDirToSearch
in class SimpleFileSearch
dir
- Name of the directory, not the whole path!
SimpleFileSearch.isDirToSearch(java.lang.String)
protected boolean isSearchedFileName(java.lang.String filename)
SimpleFileSearch
isSearchedFileName
in class SimpleFileSearch
filename
- Name of the file, not its path!
SimpleFileSearch.isSearchedFileName(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |