- 浏览: 103328 次
- 性别:
- 来自: 大连
文章分类
- 全部博客 (159)
- 前端开发 (6)
- jsp (4)
- jquery (17)
- 配置文件 (2)
- Spring (10)
- java (34)
- hibernate (9)
- VC++ win32 application (6)
- C++ (6)
- MFC文件夹对话框 (1)
- C (4)
- MFC (1)
- C# (3)
- 两个路由器怎么连接 (1)
- Maven3 (3)
- Servlet (10)
- Struts2 (6)
- jdom (1)
- Struts1 (1)
- Spring MVC (2)
- Ant (5)
- SSH (6)
- oracle 10g (1)
- ibatis (3)
- JPA (3)
- EJB (2)
- XML知识 (3)
- javascript (2)
- android (1)
- FreeMarker (1)
- dwr (1)
- Ext (10)
- EXCEL (1)
最新评论
package com.bjsxt.buffer; import java.io.BufferedInputStream; import java.io.FileInputStream; public class TestBufferStream1 { /** * @param args * @throws Exception */ public static void main(String[] args) throws Exception { FileInputStream fis = new FileInputStream("C:\\Documents and Settings\\longlong\\My Documents\\HelloWorld.java"); BufferedInputStream bis = new BufferedInputStream(fis); int c = 0; bis.mark(10); for(int i = 0; i <= 10 && (c = bis.read())!=-1; i++) { System.out.print((char)c + " "); } System.out.println(); bis.reset(); for(int i = 0; i <= 10 && (c = bis.read())!=-1; i++) { System.out.print((char)c + " "); } bis.close(); fis.close(); } }
package com.bjsxt.buffer; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; public class TestBufferStream2 { /** * @param args */ public static void main(String[] args) { try { BufferedWriter bw = new BufferedWriter(new FileWriter("c:\\share.txt")); BufferedReader br = new BufferedReader(new FileReader("C:\\Documents and Settings\\longlong\\My Documents\\HelloWorld.java")); String str = null; for(int i = 1; i <= 100; i++ ) { str = String.valueOf(Math.random()); bw.write(str); bw.newLine(); } bw.flush(); while((str = br.readLine())!=null) { System.out.println(str); } bw.close(); br.close(); } catch (IOException e) { e.printStackTrace(); } } }
发表评论
-
java的日期操作类
2014-09-16 15:00 496package cn.mldn; import ja ... -
列表框 JList
2014-08-16 19:19 439package net.mindview.util; ... -
分页类
2014-02-23 15:05 464package com.yxq.model; pub ... -
java mail
2014-02-14 15:13 359package com.util.mail; /** ... -
Map输出方式一:Iterator输出Map
2014-02-12 11:49 844package com.mldn.map; impo ... -
Comparable
2014-02-11 20:16 345package org.lxh.demo13.setdem ... -
Foreach与迭代器
2014-02-11 17:45 477到目前为止,foreach语法主要用于数组,但是它也可以应 ... -
打印流
2014-02-07 20:10 404package com.bjsxt.print; i ... -
管道流
2014-02-07 17:23 405package com.bjsxt.buffer; ... -
Tramsform IO
2014-02-07 16:15 591package com.bjsxt.transform; ... -
字符流
2014-02-07 10:32 564package com.bjsxt.reader; ... -
字节流
2014-02-06 17:57 468package com.bjsxt.stream; ... -
RandomAccessFile类
2014-02-06 13:18 561使用RandomAccessFile类写入数据 impor ... -
排序啊啊啊啊
2013-09-18 10:32 409package cn.mldn; public cl ... -
java_匿名内部类
2013-04-10 15:26 914package com.bitsoft.inner; ... -
java_内部类
2013-04-10 14:05 746package com.diaodiao.inner; ... -
JAVA----- String方面的面试举例
2013-03-31 00:55 693[img] [/img] package com.t ... -
反射机制(2)
2013-03-20 20:39 655package com.bjsxt.demo; im ... -
反射机制
2013-03-17 22:19 440package org.dcl.demo; inte ... -
jdbc 存储过程
2013-03-13 15:13 672MySQL存储过程的创建 (1). 格式 MySQL存储过 ...
相关推荐
可以在一个类的范围内声明另一个类。...class BufferedIO { public: enum IOError { None, Access, General }; // Declare nested class BufferedInput. class BufferedInput { public: int read
使用缓冲区方式(DO_BUFFERED_IO)进行用户模式和内核模式地址的数据交互。包括驱动程序和用户模式的测试程序。用DDK编译驱动,VS2008编译测试程序。
io缓冲区 一个非常简单的缓冲 I/O 的流。 数据以您指定大小的块提供。例子 var fs = require ( 'fs' ) ;var ioBuf = require ( 'io-buffer' ) ;// Write data to a file in 256 byte chunksvar buffered = ioBuf . ...
读写端口的驱动及测试代码,使用DO_BUFFERED_IO 支持,8位,16位,及32位的读写。
BufferedReader/BufferedWriter 实现从字节流到字符流的读取。代码用来实现文本内容的复制!
Thrift 支持 Buffered 和 Framed 二进制协议;Kitex Protobuf 是 Kitex 自定义的 Protobuf 消息协议,协议格式类似 Thrift;gRPC 是对 gRPC 消息协议的支持,可以与 gRPC 互通。除此之外,使用者也可以扩展自己的...
filterDeviceObject->Flags|=(targetDevice->Flags&(DO_DIRECT_IO|DO_BUFFERED_IO)); ObDereferenceObject(fileOjbect); return STATUS_SUCCESS; 2.设置完成例程 PDEVICE_EXTENSION pdx; pdx=(PDEVICE_EXTENSION)...
该文档为官方webx框架文档,对webx进行了全面的讲解,非常实用,并附学习的Demo 为什么要用Webx而不是其它的开源框架? 现在有很多Java的Web框架可供选择,并且它们也都是免费的。例如: • Struts ...
网页爬虫:就是一个程序用于在互联网中获取指定规则的数据。 思路: ...使用notepad++进行编辑,编辑内容为: ) 2.使用URL与网页建立联系 3.获取输入流,用于读取网页中的内容 ...import java.io.Buffered
the io package, the io.Writer and io.Reader interfaces, and the bufio package that is used for buffered input and output. You will also create Go versions of the cp(1), wc(1), and dd(1) utilities. ...
缓冲保险丝维护者 : Sooman Jeong ( ) 贡献者: Im ( ) 基本源代码: : 参考: Sooman Jeong, Youjip Won,“Buffered FUSE:针对用户级文件系统优化 Android IO 堆栈”,国际嵌入式系统杂志 (IJES),嵌入式和...
// Get a buffered image of the selection for dragging a ghost image this.ghostImage = new BufferedImage((int) raPath.getWidth(), (int) raPath.getHeight(), BufferedImage.TYPE_INT_ARGB_PRE); ...
CPU的执行时间、IO等待的时间和锁等待时间。 平均I/O响应时间。 支持峰值IOPS数和MPS数。 物理读和逻辑读的百分比。 有效索引读的百分比。 有效行读的百分比。 数据库设计准则及方法论全文共5页,当前为第3页。...
PEP 3151: Reworking the OS and IO exception hierarchy PEP 380: Syntax for Delegating to a Subgenerator PEP 409: Suppressing exception context PEP 414: Explicit Unicode literals PEP 3155: Qualified...