-
Sort Sort Sort Sort Sort
Sort Sort Sort -Sort Sort Sort Sort Sort
- 2023-01-18 20:20:03下载
- 积分:1
-
java的数据流
3.11 流
知道流的分类
掌握IO常用操作
Java中的流代表程序中数据的流通,是以先进先出方式发送信息的通道。
图3- 11 输入流和输出流
流可以分为不同的类型,按照不同的分类方式,从不同的角度来观察,概念上会有重叠。
按照流的方向,可以将流分为输入流和输出流:
输入流(InputStream):只能从中读取数据,而不能向其写入数据。
输出流(OutputStream):只能向其写入数据,而不能从中读取数据。
按照处理流的基本单位可以将流分为字节流和字符流:
字节流:在流中处理的基本单位为字节(8位的byte)的流。
字符流:在流中处理的基本单位为字符(16位的Unicode)的流。
按照流的角色分,可以将流分为节点流和过滤流:
节点流:可以从/向一个特定的IO设备(如磁盘或网络)读/写数据的流,节点流又常被称为低级流(Low Level Stream),节点通常是指文件、内存和管道。
过滤流:实现对一个已经存在的流的连接和封装,通过所封装的流的功能调用实现数据读/写功能的流。这种对流进行处理的流称为过滤流。
字节流中存放的是字节序列,无论是输入还是输出,都是直接对字节进行处理。InputStream和OutputStream为字节输入/输出流类的顶层父类。字符流中存放的是字符序列,无论是输入还是输出,都是直接对字符处理。字符流的顶层父类是Reader和Writer。节点流通常直接对特定的IO设备(如磁盘或网络)进行读写,而过滤流通常对已存在的流进行连接和封装,从而对已有的流进行特殊处理。
对象的序列化就是把对象写到一个输出流中,对象的反序列化是指从一个输入流中读取一个对象。
总结:
字节流:
输入流 输出流
FileInputStream FileOut
- 2022-01-25 23:22:03下载
- 积分:1
-
j简单的一个计算器C++源代码,乱七八糟了,随便
j简单的一个计算器C++源代码,乱七八糟了,随便-j simple calculator C++ source code, Messy, and not
- 2022-03-21 14:32:30下载
- 积分:1
-
网防网络维护
netdefender for network defend
- 2023-05-29 08:40:09下载
- 积分:1
-
图片显示程序,包括列表显示,放大缩小显示,和傅里叶变换...
图片显示程序,包括列表显示,放大缩小显示,和傅里叶变换-Presentation graphics program, including the list of shows, zoom, and Fourier transform
- 2022-01-21 04:54:14下载
- 积分:1
-
运动会管理系统源代码!
运动会管理系统源代码!-Games Management System source code!
- 2022-02-21 17:17:39下载
- 积分:1
-
AkelPad 是一个著名的记事本替代软件,很好用的。
AkelPad 是一个著名的记事本替代软件,很好用的。-AkelPad Notepad is a well-known alternative to the software, very good use.
- 2022-03-04 16:13:36下载
- 积分:1
-
The Duine Framework is a (collection of) software libraries that allows develope...
The Duine Framework is a (collection of) software libraries that allows developers to create prediction engines for their own applications. A prediction engine is a component that predicts how interested individual users are in pieces of information. Such predictions can be used to personalise information to users, specifically in recommending to users what information is and is not of interest to them.
Duine is the Irish Gaelic word for person and is pronounced as “dinne” (diner without an ‘r’).
Duine has been developed by the Telematica Instituut/Novay and is based on scientific research on personalisation and specifically into recommender systems. The scientific research results on which the Duine software is based are available at the Telematica Instituut/Novay, you can download the pdf here
- 2022-01-22 06:50:58下载
- 积分:1
-
A Novel Robust Digital Watermarking Technique Using Compressive Sensing for Biometric Data Protectio
生物识别系统是那些利用或
- 2022-01-26 05:03:43下载
- 积分:1
-
软件实现硬盘写保护卡
软件实现硬盘写保护卡-software write protect drive
- 2022-05-28 13:28:17下载
- 积分:1