自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(2)
  • 资源 (3)
  • 收藏
  • 关注

原创 使用Berkeley DB来做java开发入门

以下例希望有点帮助,也是自己刚刚研究出来的 import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import j...

2010-12-30 14:50:29 41

原创 Berkeley DB 安装和环境的配置(java开发)

先在 http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html 下载Berkeley DB 11gR2 不是je的版本 在windows 下载是一个安装包db-5.1.19.msi 可以直接安装 安装后 跑不起来 是因为环境说少libdb51.dll 你可以找到安装目录下Berkeley...

2010-12-30 14:17:33 118

java5中文API.chm

java 中文件api,共享大家学习使用

2011-05-18

IO流的使用,自己的心得

/** * 用缓存的字节入做写入操作 * */ @Test public void testOutPut(){ String filePath = "F://test1.txt"; String writeString = "testOutPut:1231"; int tempLength = 2; StringBuffer bs = new StringBuffer(); int each = 0; try { ops = new FileOutputStream(filePath); byte writeStringToBytes[] = writeString.getBytes(); byte temp[] = new byte[tempLength]; //需要几次写入 if(writeStringToBytes.length%tempLength==0) each = writeStringToBytes.length/tempLength; else each = writeStringToBytes.length/tempLength+1; //每一次写入流 for(int i=0;i<each;i++){ if(i==(each-1)&&writeStringToBytes.length%tempLength!=0){ System.arraycopy(writeStringToBytes, i*tempLength, temp, 0, writeStringToBytes.length%tempLength); ops.write(new String(temp,"GBK").trim().getBytes(),0,writeStringToBytes.length%tempLength); bs.append(new String(temp,0,writeStringToBytes.length%tempLength,"GBK")); }else{ System.arraycopy(writeStringToBytes, i*tempLength, temp, 0, tempLength); ops.write(new String(temp,"GBK").trim().getBytes()); bs.append(new String(temp,"GBK")); } } // System.out.println(bs.toString().trim()); // ops.write(writeStringToBytes); ops.flush(); ops.close(); // System.out.println("bs=="+bs.toString().trim()); } catch (IOException e) { e.printStackTrace(); } System.out.println("each="+each); }

2009-03-06

struts2.0学习系列

在JSP中使用Struts 2.0标志,先要指明标志的引入。通过在JSP的代码的顶部加入以下代码可以做到这点。 <%@taglib prefix="s" uri="/struts-tags" %> 一步步讲起 对初学者非常容易上手

2009-03-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除