Java
文章平均质量分 76
青城影月
这个作者很懒,什么都没留下…
展开
-
验证码图片生成源码
package com.liyunpeng.util;import java.awt.Color;import java.awt.Font;import java.awt.Graphics;import java.awt.image.BufferedImage;import java.util.Random;import javax.imageio.ImageIO;原创 2014-03-03 15:17:13 · 670 阅读 · 0 评论 -
Word文件数据显示在页面上
new Object[]{ "d://"+name, new Variant(8)//7为txt格式, 8保存为html格式 }, new int[1] ); Variant f = new Variant(fals原创 2014-04-23 11:51:51 · 482 阅读 · 0 评论 -
base64 压缩传送和非压缩传送
// 压缩字符串传输 private void pageOutByte(HttpServletResponse response, String buf) throws ServletException, IOException { response.setContentType("Content-Type application/x-gzip原创 2014-03-03 15:25:53 · 979 阅读 · 0 评论 -
MD5加密源码
public class MD5Utils { /** * 加密字符串 * @param str 要加密的字符串 * @return 返回加密后的字符串 */ public static String MD5(String str) { char hexDigits[] = {原创 2014-03-03 15:10:35 · 423 阅读 · 0 评论 -
zip压缩&解压缩字符串
/** * * Description:使用gzip进行解压缩 * @param compressedStr * @return */ public static String gunzip(String compressedStr){ if(compressedStr==null){ re原创 2014-03-03 15:19:01 · 862 阅读 · 0 评论