- 博客(4)
- 收藏
- 关注
原创 状态模式
The State Pattern allows an object to alter its behavior when its internal state changes. The object will appear to change its class. 把分散在每个方法的状态反转。
2016-01-07 08:14:22 44
原创 FileInputStream_FileOutputStream
<br />package io; import java.io.FileInputStream; import java.io.FileOutputStream; public class BasicIO { // public static void main(String[] args) { try{ int temp=-1; FileInputStream in = new FileInputStream("F://eclipseWorkStation//temp
2011-04-28 21:04:00 125
原创 ①IO初步
1。InputStream OutputStream,Reader Writer是抽象类,程序为基准分读写,后者是读字符。其他的类继承于这些抽象类。2。基本的读取方法抽象类,继承Closeable 。基本的读写法一个个读,缓冲读写,中间读写。缓冲读写需要数组为内存。abstract intread () 从输入流中读取数据的下一个字节。 intread (byte[] b) 从输入流中读取一定数量的字节,并将其存储在缓冲区数组 b 中。 intre
2011-04-28 20:34:00 134
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人