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

1、流的定义
流是数据传输的载体的运行过程。且流具有指向性与映射性。流的底层建模的模型为管道模型,因此我们又称之为管道通信。流的设计模式为装饰者模式,大多数流的操作仅仅返回流的本体,因此我们又称之为管道内衬。
2、流的分类
流根据数据类型分可分为字符流与字节流。根据数据操作来分类可分为文件、缓存、管道、基本数据类型、打印、对象(序列化与反序列化)。
3、流的目的
流的目的是为了解决异件间的数据传输。
4、流的特性
1、流是一个载体。其目的是为了解决数据传输的。
2、流具有方向性。根据操作的不同(写入/读取)可分为输入流与输出流。
3、流具有流动性(传输性)。流作为数据传输的载体本身具有传输性,否则将无法担任数据传输这个任务。
4、序列化与反序列化,
5、知识拓展
数据在计算机当中以文件的形式存在。因此我们对数据的操作实际上就是在对文件进行操作。
’代码实现
对文件操作
更多关注
https://edu.51cto.com/course/20124.html
边栏推荐
- Clickhouse notes 03-- grafana accesses Clickhouse
- 零基础学习CANoe Panel(12)—— 进度条(Progress Bar)
- Maskgae: masked graph modeling meets graph autoencoders
- If you want to do a good job in software testing, you can first understand ast, SCA and penetration testing
- Shell常用脚本:判断远程主机的文件是否存在
- [机器学习] 实验笔记 – 表情识别(emotion recognition)
- Mid 2022 review | latest progress of large model technology Lanzhou Technology
- Use of hystrix
- 2022.07.24(LC_6124_第一个出现两次的字母)
- Chapter5 : Deep Learning and Computational Chemistry
猜你喜欢
![[rust] reference and borrowing, string slice type (& STR) - rust language foundation 12](/img/48/7a1777b735312f29d3a4016a14598c.png)
[rust] reference and borrowing, string slice type (& STR) - rust language foundation 12

Business visualization - make your flowchart'run'(3. Branch selection & cross language distributed operation node)

网络空间安全 渗透攻防9(PKI)

Atcoder beginer contest 261 f / / tree array

Seven lines of code made station B crash for three hours, but "a scheming 0"

【历史上的今天】7 月 25 日:IBM 获得了第一项专利;Verizon 收购雅虎;亚马逊发布 Fire Phone

"Wei Lai Cup" 2022 Niuke summer multi school training camp 2 supplementary problem solution (g, J, K, l)

【C语言进阶】动态内存管理
![[300 opencv routines] 239. accurate positioning of Harris corner detection (cornersubpix)](/img/a6/c45a504722f5fd6e3c9fb8e51c6bb5.png)
[300 opencv routines] 239. accurate positioning of Harris corner detection (cornersubpix)

MLX90640 红外热成像仪测温传感器模块开发笔记(五)
随机推荐
Intval MD5 bypass [wustctf2020] plain
Chapter5 : Deep Learning and Computational Chemistry
【问题解决】org.apache.ibatis.exceptions.PersistenceException: Error building SqlSession.1 字节的 UTF-8 序列的字
State mode
零基础学习CANoe Panel(13)—— 滑条(TrackBar )
Docker学习 - Redis集群-3主3从-扩容-缩容搭建
Make a general cascade dictionary selection control based on jeecg -dictcascadeuniversal
ECCV 2022 | 登顶SemanticKITTI!基于二维先验辅助的激光雷达点云语义分割
[fluent -- example] case 1: comprehensive example of basic components and layout components
Vim技巧:永远显示行号
485通讯( 详解 )
Table partition of MySQL
Want to go whoring in vain, right? Enough for you this time!
7行代码让B站崩溃3小时,竟因“一个诡计多端的0”
Plus SBOM: assembly line BOM pbom
Go: Gin custom log output format
AtCoder Beginner Contest 261 F // 树状数组
Lu MENGZHENG's "Fu of broken kiln"
More accurate and efficient segmentation of organs-at-risk in radiotherapy with Convolutional Neural
卷积核越大性能越强?一文解读RepLKNet模型