摘要:
IO的一点学习记录1、View Code packageio.file;importjava.io.BufferedReader;importjava.io.File;importjava.io.FileReader;importjava.io.IOException;importjava.io.StringReader;publicclassInput{publicstaticvoidmain(String[]args)throwsIOException{Stringpath=Input.class.getResource(".").getFile()+"/te 阅读全文
摘要:
Java代码 HttpClientclient=newHttpClient(); HttpMethodmethod=newGetMethod("http://www.apache.org"); try{ client.executeMethod(method); byte[]responseBody=null; responseBody=method.getResponseBody(); }catch(HttpExceptione){ //TODOAuto-generatedcatchblock e.printStackTrace(); }catch(IOException 阅读全文