InputStream 和OutputStream
4.4.2 InputStream 和OutputStream
1.InputStream
◇ 从流中读取数据:
int read( ); //读取一个字节,返回值为所读的字节
int read( byte b[ ] ); //读取多个字节,放置到字节数组b中,通常
//读取的字节数量为b的长度,返回值为实际
//读取的字节的数量
int read( byte b[ ]
转载
2013-06-28 16:12:28 ·
317 阅读 ·
0 评论