|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.elite.jdcbot.util.WebPageFetcher
org.elite.jdcbot.util.GoogleCalculation
public class GoogleCalculation
This class extends WebPageFetcher class and implements Runnable It gets calculation string (e.g. 1+2*3) and returns result using google and WebPageFetcher Reason for implementing Runnable is that it can gets stuck while WebPageFetcher finishes its work Credits for idea goes to http://sourceforge.net/projects/phpdcbot !!!
| Field Summary | |
|---|---|
private jDCBot |
_bot
|
| Constructor Summary | |
|---|---|
GoogleCalculation(jDCBot bot,
java.lang.String calc)
|
|
| Method Summary | |
|---|---|
private java.lang.String |
GetCalculation()
|
void |
run()
|
| Methods inherited from class org.elite.jdcbot.util.WebPageFetcher |
|---|
getPageContent, getPageHeader, SetURL, SetURL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private jDCBot _bot
| Constructor Detail |
|---|
public GoogleCalculation(jDCBot bot,
java.lang.String calc)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
private java.lang.String GetCalculation()
throws java.lang.Exception
java.lang.Exceptionpublic void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||