使用jsoup解析远程共享文件中的html,jsoup共享文件,[Java]代码publ
分享于 点击 6142 次 点评:243
使用jsoup解析远程共享文件中的html,jsoup共享文件,[Java]代码publ
[Java]代码
public class TestRS { public static void main(String[] args) { TestRS trs = new TestRS(); trs.praseRsFile(); } //解析在远程共享文件中的html public void praseRsFile(){ try { File input = new File("//192.168.18.232/heritrix/index.html"); Document doc = Jsoup.parse(input,"UTF-8"); Elements files = doc.body().select("*"); System.out.println(files); } catch (IOException ex) { Logger.getLogger(TestRS.class.getName()).log(Level.SEVERE, null, ex); } } }
用户点评