Java I / O流;有什么区别?

编程入门 行业动态 更新时间:2024-10-28 02:23:32
本文介绍了Java I / O流;有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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流;有什么区别?

本文发布于:2023-07-29 09:04:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1239332.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:有什么区别   Java

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!