0
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse((new URL(myUrl)).openStream());
我得到這個例外....如何獲取URL的HTML內容?
啓發你有INTERNET許可,您的清單? – 2012-07-09 06:43:14
請把這裏的例外... – Rudy 2012-07-09 06:45:23
我得到「空例外」。它發生在我嘗試獲取流時。 – user1488918 2012-07-09 06:59:25