818283848586878889909192
Reader reader = new InputStreamReader(in); Document document = builder.newDocument(); try { HtmlParser parser = new HtmlParser(new SimpleUserAgentContext(), document); parser.parse(reader); } catch (Exception e) { logger.error(e, e); } in.close();
117118119120121122123124125126127128129
{ Document document = builder.newDocument(); // Here is where we use Cobra's HTML parser. HtmlParser parser = new HtmlParser(uacontext, document); parser.parse(bin); /* *