![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
File
艾伦蓝
Just do it
展开
-
java 文件操作
[color=red][b]android 文件工具[/b][/color][code="java"]package com.example.asyncimageloader;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import android.co...原创 2014-05-20 16:06:46 · 70 阅读 · 0 评论 -
File 对象实例与Byte[]之间的转换
[color=red]主要的类是ObjectOutputStream ObjectInputStream 和 ByteArrayOutputStream ByteArrayInputStream [/color]对象转Byte[][code="java"] ObjectOutputStream oos = null; ByteArrayOutputStream byteO...原创 2014-07-19 11:51:58 · 1086 阅读 · 0 评论 -
java Servlet 实现解析Excel
[size=large][b]后台[/b][/size][code="java"] @SuppressWarnings("all") public void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { r...原创 2014-09-20 09:41:51 · 277 阅读 · 0 评论 -
java POI操作Excel代码收藏 (包括标题垂直水平居中)
[size=large][color=red][b]1.HSSF 2003版Excel导出[/b][/color][/size][code="java"]package com.hwt.glmf.common;import java.io.IOException;import java.io.OutputStream;import java.util.ArrayList;...原创 2016-03-30 20:10:42 · 1800 阅读 · 0 评论 -
java 文件操作
droid.content.Context;import android.graphics.Bitmap;import android.graphics.Bitmap.CompressFormat;import android.graphics.BitmapFactory;import android.os.Environment;public class FileUtils { /** * sd卡的根目录 */ private static String mSd原创 2014-05-20 16:06:46 · 65 阅读 · 0 评论 -
File 对象实例与Byte[]之间的转换
OutputStream byteOut = null; try { byteOut = new ByteArrayOutputStream(); oos = new ObjectOutputStream(byteOut); oos.writeObject(obj); byte[] bytes = byteOut.toByteArray(); } catch (Exception e) { }[/code]Byte[]转对象[code=&q原创 2014-07-19 11:51:58 · 412 阅读 · 0 评论 -
java Servlet 实现解析Excel
request.setCharacterEncoding("utf-8"); // 设置编码 DiskFileItemFactory factory = new DiskFileItemFactory(); factory.setSizeThreshold(1024 * 512); factory.setRepository(new File("D:/tempload")); ServletFileUpload fileUpload =原创 2014-09-20 09:41:51 · 140 阅读 · 0 评论 -
java POI操作Excel代码收藏 (包括标题垂直水平居中)
List;import java.util.List;import javax.servlet.http.HttpServletResponse;import org.apache.poi.hssf.usermodel.HSSFCell;import org.apache.poi.hssf.usermodel.HSSFCellStyle;import org.apache.poi.hssf.usermodel.HSSFFont;import org.apache.poi.hs原创 2016-03-30 20:10:42 · 236 阅读 · 0 评论