当前位置:网站首页>简单了解流
简单了解流
2022-07-25 12:43:00 【51CTO】

1、流的定义
流是数据传输的载体的运行过程。且流具有指向性与映射性。流的底层建模的模型为管道模型,因此我们又称之为管道通信。流的设计模式为装饰者模式,大多数流的操作仅仅返回流的本体,因此我们又称之为管道内衬。
2、流的分类
流根据数据类型分可分为字符流与字节流。根据数据操作来分类可分为文件、缓存、管道、基本数据类型、打印、对象(序列化与反序列化)。
3、流的目的
流的目的是为了解决异件间的数据传输。
4、流的特性
1、流是一个载体。其目的是为了解决数据传输的。
2、流具有方向性。根据操作的不同(写入/读取)可分为输入流与输出流。
3、流具有流动性(传输性)。流作为数据传输的载体本身具有传输性,否则将无法担任数据传输这个任务。
4、序列化与反序列化,
5、知识拓展
数据在计算机当中以文件的形式存在。因此我们对数据的操作实际上就是在对文件进行操作。
’代码实现
对文件操作
更多关注
https://edu.51cto.com/course/20124.html
边栏推荐
- 部署Apache网站服务以及访问控制的实现
- Can flinkcdc import multiple tables in mongodb database together?
- [300 opencv routines] 239. accurate positioning of Harris corner detection (cornersubpix)
- Vim技巧:永远显示行号
- JS 将伪数组转换成数组
- 2022.07.24(LC_6125_相等行列对)
- Shell常用脚本:判断远程主机的文件是否存在
- 【问题解决】org.apache.ibatis.exceptions.PersistenceException: Error building SqlSession.1 字节的 UTF-8 序列的字
- 【AI4Code】《InferCode: Self-Supervised Learning of Code Representations by Predicting Subtrees》ICSE‘21
- 2022.07.24(LC_6124_第一个出现两次的字母)
猜你喜欢

什么是CI/CD?
![[operation and maintenance, implementation of high-quality products] interview skills for technical positions with a monthly salary of 10k+](/img/d8/90116f967ef0f5920848eca1f55cdc.png)
[operation and maintenance, implementation of high-quality products] interview skills for technical positions with a monthly salary of 10k+

Moving Chinese figure liushenglan

EMQX Cloud 更新:日志分析增加更多参数,监控运维更省心

What is ci/cd?

感动中国人物刘盛兰

艰辛的旅程
![[fluent -- example] case 1: comprehensive example of basic components and layout components](/img/d5/2392d9cb8550aa2692c8b41303d507.png)
[fluent -- example] case 1: comprehensive example of basic components and layout components

ECCV2022 | TransGrasp类级别抓取姿态迁移

Docekr学习 - MySQL8主从复制搭建部署
随机推荐
软件测试面试题目:请你列举几个物品的测试方法怎么说?
Docker学习 - Redis集群-3主3从-扩容-缩容搭建
OAuth,JWT ,OIDC你们搞得我好乱啊
Atcoder beginer contest 261e / / bitwise thinking + DP
[operation and maintenance, implementation of high-quality products] interview skills for technical positions with a monthly salary of 10k+
Detailed explanation of flex box
Alibaba cloud technology expert Qin long: reliability assurance is a must - how to carry out chaos engineering on the cloud?
Zero basic learning canoe panel (12) -- progress bar
零基础学习CANoe Panel(13)—— 滑条(TrackBar )
The programmer's father made his own AI breast feeding detector to predict that the baby is hungry and not let the crying affect his wife's sleep
启牛开的证券账户安全吗?是怎么开账户的
[problem solving] org.apache.ibatis.exceptions PersistenceException: Error building SqlSession. 1-byte word of UTF-8 sequence
[300 opencv routines] 239. accurate positioning of Harris corner detection (cornersubpix)
Chapter5 : Deep Learning and Computational Chemistry
迁移PaloAlto HA高可用防火墙到Panorama
零基础学习CANoe Panel(16)—— Clock Control/Panel Control/Start Stop Control/Tab Control
【历史上的今天】7 月 25 日:IBM 获得了第一项专利;Verizon 收购雅虎;亚马逊发布 Fire Phone
perf 性能调试
go : gin 自定义日志输出格式
Software testing interview question: Please list the testing methods of several items?