|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.net.URLWatcher
public final class URLWatcher
URLWatcher watches URLs and provides access to the most recent data from the URL.
| Method Summary | |
|---|---|
java.lang.String |
getContent(java.net.URL u)
Get the content (as a String) for a given URL. |
static URLWatcher |
getInstance()
Get the static instance of URLWatcher. |
boolean |
isWatching(java.net.URL u)
Find out if this URLWatcher is watching a given URL. |
void |
shutdown()
Instruct the URLWatcher to stop URLWatching. |
void |
startWatching(URLItem u)
Start watching the given URL. |
java.lang.String |
toString()
String me. |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static URLWatcher getInstance()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isWatching(java.net.URL u)
u - the URL to test
public void startWatching(URLItem u)
u - The item to watchpublic void shutdown()
public java.lang.String getContent(java.net.URL u)
throws java.io.IOException
u - The URL whose content we want
java.io.IOException - if there was a problem updating the URL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||