日期:2014-05-18  浏览次数:20686 次

有jsp小偷程序吗
有jsp小偷程序吗,谁能给个例子?

------解决方案--------------------
String page = "网址 ";
String sCurrentLine;
String sTotalString;
sCurrentLine = " ";
sTotalString = " ";
java.io.InputStream l_urlStream;
java.net.URL l_url = new java.net.URL(page);
java.net.HttpURLConnection l_connection = (java.net.HttpURLConnection) l_url
.openConnection();
l_connection.connect();
l_urlStream = l_connection.getInputStream();
java.io.BufferedReader l_reader = new java.io.BufferedReader(new java.io.InputStreamReader(
l_urlStream));
while ((sCurrentLine = l_reader.readLine()) != null) {
sTotalString += sCurrentLine;
}