06 2020 档案

摘要:netUrl:提供一个文件的网址 filePath:本地保存的路径 1 ... 2 private File getNetUrlHttp(String netUrl, String filePath) throws IOException { 3 File file = null; 4 URL ur 阅读全文
posted @ 2020-06-11 10:20 龙谷情Sinoam 阅读(312) 评论(0) 推荐(1) 编辑
摘要:1.下载swfTools并安装,下载地址http://www.swftools.org/download.html 2.复制代码到工具类中 1 ... 2 3 /** 4 * pdf转swf 5 * swfDir 存的exe文件路径,我的是:D:/SWFTools/pdf2swf.exe 6 * 7 阅读全文
posted @ 2020-06-10 10:43 龙谷情Sinoam 阅读(359) 评论(0) 推荐(1) 编辑
摘要:下载安装openoffice,下载地址:http://www.openoffice.org/download/ 我安装的目录: 输入cmd回车 在命令窗口输入 soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" –nofi 阅读全文
posted @ 2020-06-10 10:35 龙谷情Sinoam 阅读(1646) 评论(0) 推荐(0) 编辑
摘要:1.复制单元格 1 ... 2 public static void copyCell(Workbook wb, Cell srcCell, Cell distCell, boolean copyValueFlag) { 3 //新建单元格样式 4 CellStyle newStyle = wb.c 阅读全文
posted @ 2020-06-09 19:50 龙谷情Sinoam 阅读(337) 评论(0) 推荐(0) 编辑
摘要:1.判断当前单元格是不是合并单元格 1 ... 2 private boolean isMergedRegion(Sheet sheet, int row, int column) { 3 //获取合并单元格的数量 4 int sheetMergeCount = sheet.getNumMerged 阅读全文
posted @ 2020-06-09 19:38 龙谷情Sinoam 阅读(634) 评论(0) 推荐(0) 编辑
摘要:1.获取某字符串中汉字的个数 1 ... 2 private int getChineseCount(String text) { 3 String Reg = "^[\u4e00-\u9fa5]{1}$";// 正则 4 int result = 0; 5 for (int i = 0; i < 阅读全文
posted @ 2020-06-09 19:19 龙谷情Sinoam 阅读(213) 评论(0) 推荐(0) 编辑

Smiley face
点击右上角即可分享
微信分享提示