URL aurl = new URL(url);
BufferedReader br = new BufferedReader(new InputStreamReader(aurl
.openStream()));
FileWriter fw = new FileWriter("d:/a.html");
String line = "";
while (line != null)
{
line = br.readLine();
fw.write(line);
}
fw.flush();
fw.close();
java程序没办法,jsp程序是可以的
好像有个html解析jsoup
用 Servlet或jsp 读取内容
有个httpParser,我不知道能不能取css,但html里的内容是可以读的。