java导出Excel工具类
2013-11-07 09:54
375 查看
package com.excel; import java.io.OutputStream; import java.util.Map; import jxl.write.NumberFormat; import jxl.write.WritableSheet; public class VerifyUtil { public static boolean isNullObject(String[][] content, OutputStream os) { // TODO Auto-generated method stub if(content != null && content.length > 0 && os != null) { return false; } return true; } public static boolean isNull2DArray(String[][] content) { // TODO Auto-generated method stub if(content != null && content.length > 0) { return false; } return true; } public static boolean isNullObject(NumberFormat nf) { // TODO Auto-generated method stub if(nf != null) { return false; } return true; } public static boolean isNullObject(String sheetName) { if(sheetName != null && !"".equals(sheetName.trim())) { return false; } return true; } public static boolean isNullObject(Map<String, String[][]> content, OutputStream os) { // TODO Auto-generated method stub if(content != null && content.size() > 0 && os != null) { return false; } return true; } public static boolean isNull1DArray(String[] mergeInfo) { // TODO Auto-generated method stub if(mergeInfo != null && mergeInfo.length > 0) { return false; } return true; } public static boolean isNullObject(WritableSheet sheet) { // TODO Auto-generated method stub if(sheet != null) { return false; } return true; } }
VerifyUtil
本文旨在学习如何用Java导出Excel,具体细节还需要进一步完善。
相关文章推荐
- java导出excel工具类
- java导出excel工具类
- java导出excel工具类
- JAVA 导出CSV代码
- java实现将oracle表中的数据导出到excel表里
- JAVA导入导出EXCEL(JXL)
- Java与CSP数据兼容之二:Java兼容CSP导出的RSA私钥数据
- Java POI Excel导出文件名中文乱码
- 比较好用的java导出大数据量Excel
- java导出成jar(含有第三方jar和配置文件)
- Java中将JTable中的数据导出到Excel中
- 解决java poi导出excel2003不能超过65536行的问题
- java导出Excel表格
- 通过java实现代码规模统计并把结果导出至execl中
- java导出Excel文件,直接可以下载,然后更新状态,刷新页面
- Java实现Excel导入导出的工具类
- java 导出文件在不同的浏览器上名称乱码
- 从JAVA导出数据到Excel
- java实现页面excel导出功能
- java导出数据到excel文件