|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.curn.Curn
public class Curn
curn: Customizable Utilitarian RSS Notifier.
curn is an RSS reader. It scans a configured set of URLs, each one representing an RSS feed, and summarizes the results in an easy-to-read text format. curn keeps track of URLs it's seen before, using an on-disk cache; when using the cache, it will suppress displaying URLs it has already reported (though that behavior can be disabled). curn can be extended to use any RSS parser; by default, it uses the ROME parser.
The Curn class represents the API entry point into the
curn processing. Any program can call a Curn object's
processRSSFeeds() method to invoke a curn
run. In practice, most people use the existing Tool command-line
program.
| Constructor Summary | |
|---|---|
Curn()
Deprecated. Use Curn(PrintWriter) |
|
Curn(java.io.PrintWriter err)
Instantiate a new Curn object and loads its plug-ins. |
|
| Method Summary | |
|---|---|
void |
run(java.net.URL configURL,
boolean useCache)
Run curn against a configuration file. |
void |
setAbortOnUndefinedConfigVariable(boolean enable)
Set or clear the flag that controls whether the curn configuration parser will abort when it encounters an undefined configuration variable. |
void |
setCurrentTime(java.util.Date newTime)
Set the cache's notion of the current time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Curn()
throws CurnException
Curn(PrintWriter)
CurnException - on error
public Curn(java.io.PrintWriter err)
throws CurnException
err - Where to write error messages the user should see
CurnException - on error| Method Detail |
|---|
public void run(java.net.URL configURL,
boolean useCache)
throws CurnException
configURL - URL to the configuration datauseCache - whether or not to use the cache
CurnUsageException - user error (e.g., bad configuration)
CurnException - some other errorpublic void setCurrentTime(java.util.Date newTime)
newTime - the time to pretend is the current timepublic void setAbortOnUndefinedConfigVariable(boolean enable)
enable - true to enable the "abort on undefined variable"
flag, false to disable it.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||