java
文章平均质量分 81
yelloohe
我是一只小菜鸟。尽管现在的天很黑,我也飞不快,但我相信。黎明就在眼前,我只要一直飞,一直飞
展开
-
java 的io 和nio的简单读写
最近遇到多线程文件读取的问题。即把io和nio 简单比较一下:贴出代码://io的读写操作 public static void testIO() throws IOException { FileInputStream fins= null; FileOutputStream fouts = null; try {原创 2016-02-16 17:07:54 · 394 阅读 · 0 评论 -
前台extjs后台 java poi 读取excel数据到数据库中
extJs的前台部分:1.定义导出按钮:this.returnJnlImportBtn1 = new Ext.Button({ text : "账户调整前导入", id : "returnJnl_import1", iconCls : "icon-add", hidden: false, scope : this, handler : thi原创 2016-02-29 10:15:19 · 3729 阅读 · 0 评论 -
extjs 导出简单的excel表格
js代码:this.returnJnlExportBtn = new Ext.Button({ text : "退单文件导出", id : "returnJnl_export", iconCls : "icon-excel", hidden: false, scope : this, handler : this.exportHandler原创 2016-02-29 14:20:57 · 583 阅读 · 1 评论 -
获取jar包中的文件路径
/**----------------------------------------------------------------------- *getAppPath需要一个当前程序使用的Java类的class属性参数,它可以返回打包过的 *Java可执行文件(jar,war)所处的系统目录名或非打包Java程序所处的目录 *@param cls为Clas转载 2017-09-30 11:30:17 · 5393 阅读 · 1 评论 -
农行深圳通java开发接口连接代码(jni连接)
最近项目开发需要连接到农行的划款接口,消息接口是通过深圳通连接的农行你,根据深圳通提供的开发接口,c的编译代码,开发的java类利用jni调用:java调用类如下:可以和相关的c代码(dll或者so文件放在项目根目录)一起打包成jar包实现解耦和;package com.sscc.fdep;import java.io.BufferedInputStream;import jav原创 2017-10-13 17:04:10 · 1518 阅读 · 0 评论