|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.info.Info
net.spy.info.* superclass -- extend this to provide info services
| Field Summary | |
protected String |
arg
|
protected boolean |
error
|
protected Hashtable |
hinfo
|
protected String |
info
|
| Constructor Summary | |
Info()
Get an info object. |
|
| Method Summary | |
String |
deEntity(String in)
Remove HTML entity stuff from a String. |
String |
get(String what)
Get a value out of the info hash. |
String |
get(String what,
String def)
Same as the above, but allows a default to use when the variable does not exist. |
protected abstract void |
getInfo()
getInfo gets the data to be parsed. |
boolean |
goodInfo()
returns true if the information is good |
protected abstract void |
parseInfo()
parseInfo parses the data into the hinfo Hashtable object. |
void |
setArg(String arg)
Set the arguments, useful when it was called with a constructor with no args. |
String |
toString()
Get a string representation of the info object. |
String |
toXML()
Get an XML representation of the info object as a String. |
| 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 |
| Field Detail |
protected boolean error
protected String info
protected Hashtable hinfo
protected String arg
| Constructor Detail |
public Info()
| Method Detail |
public void setArg(String arg)
public String toString()
public String toXML()
public boolean goodInfo()
public String get(String what)
throws Exception
what - which variable to get
Exception - will be thrown if the info cannot be parsed
public String get(String what,
String def)
throws Exception
what - which variable to getdef - default value
Exception - will be thrown if the info cannot be parsedpublic String deEntity(String in)
in - String that may contain HTML entities.
protected abstract void getInfo()
throws Exception
Exception
protected abstract void parseInfo()
throws Exception
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||