Java写的简单记事本,文本域不能输入或者直接鼠标一点就可以输入

如题所述

packagezhidao;importjava.io.BufferedReader;importjava.io.FileWriter;importjava.io.InputStreamReader;importjava.net.HttpURLConnection;importjava.net.URL;publicclassnetbug{publicstaticvoidmain(String[]args){netbug.methodPa(":808/AjaxPages/WayEvent/wayevent_he.aspx?id=262612");}publicstaticvoidmethodPa(StringstrURL){Stringtem;try{URLurl=newURL(strURL);HttpURLConnectionconn=(HttpURLConnection)url.openConnection();InputStreamReaderisr=newInputStreamReader(conn.getInputStream(),"UTF-8");BufferedReaderbr=newBufferedReader(isr);FileWriterfw=newFileWriter("c://xxy.txt");while(null!=(tem=br.readLine())){//string=Html2Text(tem);//过滤html标签fw.write(tem);}fw.flush();fw.close();br.close();isr.close();}catch(Exceptione){e.printStackTrace();}}}
温馨提示:答案为网友推荐,仅供参考
相似回答
大家正在搜