|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectthings.data.processing.Crawler
public class Crawler
Universal crawler.
Version History
EPG - Initial - 21 OCT 06
| Constructor Summary | |
|---|---|
Crawler()
|
|
| Method Summary | |
|---|---|
void |
crawl(java.lang.String pathroot,
Logger logger,
boolean loop)
Start a crawl on the filesystem. |
void |
dontMatch(java.lang.String text)
It will require every filename does NOT match the regex passed. |
void |
dropSuffix(java.lang.String suffix)
Ignore any path that has this as a suffix. |
void |
match(java.lang.String text)
It will require every filename match the regex passed. |
java.io.File |
next()
Get the next time in the crawl. |
void |
start()
Start from the root. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Crawler()
| Method Detail |
|---|
public void crawl(java.lang.String pathroot,
Logger logger,
boolean loop)
throws java.lang.Throwable
pathroot - the path from where to start.logger - the logger to use.loop - if true, just go back to the loop once we deplete.
java.lang.Throwable - for any problem.
public void start()
throws java.lang.Throwable
java.lang.Throwable
public void match(java.lang.String text)
throws java.lang.Throwable
text - the regex. It cannot be null or empty.
java.lang.Throwable
public void dontMatch(java.lang.String text)
throws java.lang.Throwable
text - the regex. It cannot be null or empty.
java.lang.Throwable
public void dropSuffix(java.lang.String suffix)
throws java.lang.Throwable
suffix - The suffix. Null will turn it off. It is not case sensitive.
java.lang.Throwable
public java.io.File next()
throws java.lang.Throwable
java.lang.Throwable - if there was a serious problem.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||