首先,IO流分为字符流和字节流
凡是以InputStream结尾的都是字节输入流,包括自身以及他的子类
比如AudioInputStream, ByteArrayInputStream, FileInputStream, FilterInputStream, InputStream, ObjectInputStream, PipedInputStream, SequenceInputStream, StringBufferInputStream
凡是以OutputStream结尾的都是字节输入流,包括自身以及子类
比如ByteArrayOutputStream, FileOutputStream, FilterOutputStream, ObjectOutputStream, OutputStream, PipedOutputStream
字符流
凡是以Reader结尾的都是用来读取字符的
比如BufferedReader, CharArrayReader, FilterReader, InputStreamReader, PipedReader, StringReader
凡是以Writer结尾的都是用来写入字符的
比如BufferedWriter, CharArrayWriter, FilterWriter, OutputStreamWriter, PipedWriter, PrintWriter, StringWriter
详细可以查看API |