没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
2页
Java nio 超大数据文件 超大数据文件Java nio 超大数据文件 超大数据文件Java nio 超大数据文件 超大数据文件Java nio 超大数据文件 超大数据文件Java nio 超大数据文件 超大数据文件Java nio 超大数据文件 超大数据文件Java nio 超大数据文件 超大数据文件Java nio 超大数据文件 超大数据文件Java nio 超大数据文件 超大数据文件Java nio 超大数据文件 超大数据文件
资源推荐
资源详情
资源评论
// public void inputStream(String nodeName,String patternValue)
// {
// String fileName="c:/lin/data/"+getForder("c:/lin/forder.txt")
+"/"+nodeName+".txt";//定义要查询的XML数据库
// final int BUFFER_SIZE = 0x300000;// 缓冲去大小为3M
// int begin_fz=0;
// int begin_fm=1;
// int end_fz=1;
// int end_fm=1;
//
// try
// {
// File f = new File(fileName);
// MappedByteBuffer inputBuffer = new RandomAccessFile(f,
"r").getChannel().map(FileChannel.MapMode.READ_ONLY,
f.length()*begin_fz/begin_fm,f.length()*end_fz/end_fm);
// byte[] dst = new byte[BUFFER_SIZE];// 每次读出3M的内容
//
// for (int offset = 0; offset < inputBuffer.capacity();
offset += BUFFER_SIZE)
// {
//
// if (inputBuffer.capacity() - offset >= BUFFER_SIZE)
// {
// int flag=-1,length1=0,length2=0,k=0;
// for (int i = 0; i < BUFFER_SIZE; i++)
// {
// dst[i] = inputBuffer.get(offset + i);
// }
//
// }
// else
// {
// int flag=-1,length1=0,length2=0,k=0;
// for (int i = 0; i < inputBuffer.capacity() -
offset; i++)
// {
//
// dst[i] = inputBuffer.get(offset + i);
// }
// }
// int length = (inputBuffer.capacity()%BUFFER_SIZE==0)?
BUFFER_SIZE:inputBuffer.capacity()%BUFFER_SIZE;
// String result=new String(dst,0,length);
LInChunbin
- 粉丝: 1
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页