|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectncsa.tools.common.util.AbstractScanner
Functionality adapted and modified from org.apache.tools.ant.FileScanner and org.apache.tools.ant.DirectoryScanner.
| Method Summary | |
abstract void |
close()
Closes streams and connections, if any. |
abstract void |
fullScan()
Will do a complete scan (i.e., will recur on any scannable parts). |
abstract java.util.List |
scanNext()
Stream-like functionality. |
void |
setDescending(boolean b)
|
void |
setFailonerror(boolean b)
|
void |
setFullMetadata(boolean b)
Whether or not the scan should produce complete metadata results or not. |
void |
setRetainExcluded(boolean b)
|
void |
setRetainIncluded(boolean b)
|
void |
setRetainNotIncluded(boolean b)
|
abstract java.util.List |
shallowScan()
Will do only a top-level scan, with no recursion. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public abstract void fullScan()
throws ScanException
ScanException
public abstract java.util.List shallowScan()
throws ScanException
ScanException
public abstract java.util.List scanNext()
throws ScanException
ScanExceptionpublic void setRetainIncluded(boolean b)
b - if true, returned ListResult will contain listings which
match an include pattern (default = true).public void setRetainExcluded(boolean b)
b - if true, returned ListResult will contain listings which
match both an include and exclude pattern (default = false).public void setRetainNotIncluded(boolean b)
b - if true, returned ListResult will contain listings which do
not match any of the includes patterns (default = false).public void setDescending(boolean b)
b - if true, sorts in descending order (default = false).public void setFullMetadata(boolean b)
b - if true, stores full metadata object; else stores only the
path / name (default = false).public void setFailonerror(boolean b)
b - if true, and the file or directory does not exist,
causes scanner to throw an exception.public abstract void close()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||