`
bincrack
  • 浏览: 3369 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论
文章列表
GZIPInputStream GIS=new GZIPInputStream(post.getResponseBodyAsStream()); InputStreamReader isr = new InputStreamReader(GIS,"GBK"); BufferedReader in2 = new BufferedReader(isr); String stringline; while ((stringline = in2.readLine()) != null) { sbf.append(stringline+"\r\n"); ...
判断是否过期(一 个月) private static boolean isDate(String isDate) { // i 测试的日期 j 一个月后的日期 x当前日期 boolean result = false; Long i, j, x; try { i = formatter.parse(isDate).getTime(); Calendar c = Calendar.getInstance(); c.setTimeInMillis(i); c.add(Calendar.MONTH, +1); c.add(Calen ...
StringBuffer sb = new StringBuffer(); FileInputStream input = new FileInputStream(new File("c:\1.txt")); BufferedReader br = new BufferedReader(new InputStreamReader(input,"GBK")); String line = null; while ((line = br.readLine()) != null){ sb.append(line); } FileWriter fw ...
//压缩 Deflater compressor = new Deflater(); compressor.setLevel(Deflater.BEST_COMPRESSION); compressor.setInput(input); compressor.finish(); ByteArrayOutputStream bos = new ByteArrayOutputStream(input.length); byte[] buf = new byte[1024]; while (!compressor.finished()) { int count = compresso ...
Global site tag (gtag.js) - Google Analytics