java.io 有许多不同的我/ O 流,(FileInputStream,FileOutputStream,FileReader,FileWriter,BufferedStreams ......等),我很困惑,确定它们之间的差异。有哪些例子,其中一种流类型优先于另一种流类型,它们之间的真正区别是什么?
java.io has many different I/O streams, (FileInputStream, FileOutputStream, FileReader, FileWriter, BufferedStreams... etc.) and I am confused in determining the differences between them. What are some examples where one stream type is preferred over another, and what are the real differences between them?
推荐答案这是一个大话题!我建议你先阅读 I / O Streams :
This is a big topic! I would recommend that you begin by reading I/O Streams:
I / O流表示输入源或输出目标。 流可以代表许多不同的种源和目的地,包括磁盘文件,设备,其他程序和内存阵列。
An I/O Stream represents an input source or an output destination. A stream can represent many different kinds of sources and destinations, including disk files, devices, other programs, and memory arrays.
Streams支持许多不同种类的数据,包括简单字节,原始数据类型,本地化字符和对象。一些流只传递数据;其他人操纵并以有用的方式转换数据。
Streams support many different kinds of data, including simple bytes, primitive data types, localized characters, and objects. Some streams simply pass on data; others manipulate and transform the data in useful ways.
更多推荐
Java I / O流;有什么区别?
发布评论