代码语言:javascript复制
<pre name="code" class="java">StringBuffer html = new StringBuffer();
代码语言:javascript复制
代码语言:javascript复制InputStream in = new GZIPInputStream(new FileInputStream(file)); Scanner sc=new Scanner(in); while(sc.hasNextLine()){ html.append(sc.nextLine().toString() "rn"); }