📄 catbot.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: CatBot.java
package com.heaton.bot.catbot;
import com.heaton.bot.HTMLPage;
import com.heaton.bot.HTTP;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Vector;
import javax.swing.text.BadLocationException;
import javax.swing.text.html.HTMLEditorKit;
// Referenced classes of package com.heaton.bot.catbot:
// Recognize
public class CatBot
{
public CatBot(HTTP http)
{
_uid = "";
_pwd = "";
_country = "";
_url = "";
_recognizers = new Vector();
_http = http;
}
public void setUID(String uid)
{
_uid = uid;
}
public String getUID()
{
return _uid;
}
public void setCountry(String country)
{
_country = country;
}
public String getCountry()
{
return _country;
}
public void setPWD(String pwd)
{
_pwd = pwd;
}
public String getPWD()
{
return _pwd;
}
public void setURL(String url)
{
_url = url;
}
public HTTP getHTTP()
{
return _http;
}
public Vector getRecognizers()
{
return _recognizers;
}
protected HTMLPage standardRecognition()
throws IOException, BadLocationException
{
HTMLPage page = new HTMLPage(_http);
page.open(_url, null);
boolean recognizedOne;
label0:
do
{
recognizedOne = false;
if(_primeRecognizer.perform(page))
return page;
Enumeration e = _recognizers.elements();
Recognize rec;
do
{
if(!e.hasMoreElements())
continue label0;
rec = (Recognize)e.nextElement();
} while(rec.isRecognized() || !rec.perform(page));
recognizedOne = true;
} while(recognizedOne && !_primeRecognizer.isRecognized());
if(_primeRecognizer.isRecognized())
return page;
else
return null;
}
protected String _uid;
protected String _pwd;
protected String _country;
protected String _url;
protected HTTP _http;
protected Vector _recognizers;
protected Recognize _primeRecognizer;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -