IO流分类
-
按流向分
- 输入流
- 输出流 按处理的单位
- 字节流
- 字符流
IO流体系
输入流中,InputStream和Reader是其他输入流的基类。InputStream中常用的几个方法如下:
int read()
int read(byte b[])
int read(byte b[], int off, int len)
Reader中常用的几个方法如下:
int read()
read(char cbuf[])
int read(char cbuf[], int off, int len)