📄 httpfind.java
字号:
import java.io.IOException;
import java.io.InputStream;
import java.net.Socket;
/*
* 创建日期 2007-10-21
*
* TODO 要更改此生成的文件的模板,请转至
* 窗口 - 首选项 - Java - 代码样式 - 代码模板
*/
public class HttpFind
{
/**
* @param args
*/
public static void main(String[] args)
{
// TODO 自动生成方法存根
// InputStream in = null;
String url = "http://192.168.0.3:8080/caiyi/communication";
// url = "http://127.0.0.1/whois.asp?domain=";
// String url1 = "http://whois.hichina.com/cgi-bin/whois?domain=";
// HttpClient http = new HttpClient(url);
//
// in = http.getInputStream();
//
// byte[] tmp = new byte[15312];
// try
// {
// in.read(tmp);
// }
// catch (IOException e)
// {
// // TODO 自动生成 catch 块
// e.printStackTrace();
// }
//
// String str = new String(tmp);
// if ( str.indexOf("未被注册")!= -1){
// System.out.println("========================未被注册====================");
// System.out.println(url);
// }
// System.out.println(str);
findWhois fin1 = new findWhois(url,"no matching record",0,13);
// findWhois fin2 = new findWhois(url1,"no matching record",13,26);
fin1.start();
// fin2.start();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -