`
hcmfys
  • 浏览: 348161 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表

&#x 格式数据转换

    博客分类:
  • java
import java.io.UnsupportedEncodingException; /** * @(#)Convert.java * * * * @author hcmfys@163.com * @version 1.00 2013/5/22 */ public class Convert { private int hex2oct(char p) throws UnsupportedEncodingException { char hexData[] = { '0', '1', '2', '3' ...
char * strtok_r(char *ptr, const char *sep, char **end) { if(!ptr) /* we got NULL input so then we get our last position instead */ ptr = *end; /* pass all letters that are including in the separator string */ while(*ptr && strchr(sep, *ptr)) + ...

c++ base64

 
/* * base64.h * * Created on: 2013-1-15 * Author: hcmfys@163.com */ #ifndef _BASE_64_H_ #define _BASE_64_H_ #include <iostream> #include <stdlib.h> #include <stdio.h> #include <string.h> using namespace std; #ifndef OUT #define OUT #endif #ifndef IN ...

Java数据库连接

    博客分类:
  • java
 
Java数据库连接(JDBC)由一组用 Java 编程语言编写的类和接口组成。JDBC 为工具/数据库开发人员提供了一个标准的 API,使他们能够用纯Java API 来编写数据库应用程序。然而各个数据库开发商的接口并不完全相同,所以开发环境的变化会带来一定的配置变化。         这里集结了主流的不同数据库的连接方式,关于Oracle,SQLserver ,Mysql,         下面集结上述文章中没有提到的数据库连接方式:         1.DB2数据库连接          Class.forName("com.ibm.db2.jdbc.app.DB2Dri ...

http post

    博客分类:
  • java
 
package test.net; import org.apache.commons.httpclient.Header; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpMethod; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.URI; import org.apache.commons.httpclient. ...
How to make your Java applications work across proxies and firewalls?IntroductionJava provides a rich API for networking and I/O. The initial releases of the JDK did not contain native support for proxies and firewall authentications -- however, as of J2SDK1.4, Java also provides native support for p ...

java版mini编辑器

    博客分类:
  • java
习惯用Editplus来查看源代码,但是没有代码导航功能,想看看类信息,elipse功能特别强大,就模拟了一些功能 现在还有不少bug,我对代码解析算法也不太懂,欢迎提出意见!! 下载在附件    实现了代码查看包,outlet 类信息     ---------------------------------------------------------------------------------------------------------------------------- 部分 括号匹配功能  

java excel 导入

    博客分类:
  • java
import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.util.ArrayList;import java.util.HashMap; import org.apache.poi.hssf.usermodel.HSSFCell;import org.apache.poi.hssf.usermodel.HSSFCellStyle;import org.apache.poi.hssf.usermodel.HSSFRow;import or ...

excel 导入

    博客分类:
  • java
 
 package *.*; import java.util.ArrayList; import java.util.Iterator; 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.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel ...

EVAL_BODY_INCLUDE

EVAL_BODY_INCLUDE:把Body读入存在的输出流中,doStartTag()函数可用 EVAL_PAGE:继续处理页面,doEndTag()函数可用 SKIP_BODY:忽略对Body的处理,doStartTag()和doAfterBody()函数可用 SKIP_PAGE:忽略对余下页面的处理,doEndTag()函数可用 EVAL_BODY_TAG:已经废止,由EVAL_BODY_BUFFERED取代 EVAL_BODY_BUFFERED:申请缓冲区,由setBodyContent()函数得到的BodyContent对象来处理tag的body,如果类实现了BodyTag,那么do ...
mvc control package com.app; import java.io.IOException; import java.io.PrintWriter; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; impor ...
Dialog DlgA { public: int Num; }; Class DlgB { DlgA a; intGetDlgAInfo() { return a.Num; } }
Dialog DlgA { public: int Num; }; Class DlgB { DlgA a; intGetDlgAInfo() { return a.Num; } }
Dialog DlgA { public: int Num; }; Class DlgB { DlgA a; intGetDlgAInfo() { return a.Num; } }
-noverify -javaagent:E:\jrebel\jrebel.jar -Drebel.dirs=E:\app\WEB-INF\classes -Drebel.spring_plugin=true -Drebel.struts2-plugin=true
Global site tag (gtag.js) - Google Analytics