From: Andrew P. <ape...@42...> - 2013-11-27 19:09:08
|
I want to parse a content String into an HtmlPage using HtmlParser and StringWebResponse. This sort of works. PageParser.java https://gist.github.com/apennebaker/7680963 However, when the source url is "scp://...", Java throws an error on URL() construction: MalformedURLException: unknown protocol: scp I'm currently using dummy URLs to get around this, but I fear corruption of data. Could we add a constructor for StringWebResponse that takes a String url? Or even better, a constructor for HtmlPage(String content, String sourceURI)? -- Cheers, Andrew Pennebaker ape...@42... |