【发布时间】:2016-02-01 16:56:01
【问题描述】:
我有这个代码:
String sitePath = "http://www.google.net/";
Document doc = Jsoup.connect(sitePath).get();
Elements elements = doc.select("body");
manipulateElements(elements);
long before = System.currentTimeMillis();
File fileDir = new File("google.html");
Writer out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fileDir), "UTF8"));
out.write(doc.toString());
out.flush();
out.close();
如何为所有数据(样式、img...)设置绝对 URL?
【问题讨论】: