how to remove the warnings in Jtidy in java

前端 未结 5 1475
北荒
北荒 2021-01-13 20:18

I am using Jtidy parser in java.

URL url = new URL(\"www.yahoo.com\"); 
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
InputStream in = c         


        
5条回答
  •  一向
    一向 (楼主)
    2021-01-13 20:59

    Writer out = new NullWriter();
    PrintWriter dummyOut = new PrintWriter(out);
    tidy.setErrout(dummyOut);
    

提交回复
热议问题