当前位置:网站首页>IO flow principle and classification
IO flow principle and classification
2022-07-03 23:18:00 【Warm as jade L】
IO Flow principle and classification
Java IO Flow principle
I/O yes Input/Output Abbreviation ,I/O Technology is a very practical technology , Used to handle data transmission . As read / Writing documents , Network communication, etc .
Java In the program , For data input / Output operation to “ flow (stream)” By .
java.io A variety of “ flow ” Classes and interfaces , To get different kinds of data , And input or output data through methods .
Input input: Read external data ( disk 、 Data from storage devices such as optical disks ) To the program ( Memory ) in
Output output: Put the program ( Memory ) Data output to disk 、 CD and other storage devices
Classification of flows
According to the operation data unit, it can be divided into : Byte stream (8 bit), Character stream ( By character , Corresponding to several bytes )
According to the direction of data flow, it can be divided into : Input stream , Output stream
According to the different roles of flow, it can be divided into : Node flow , Processing flow / Packaging flow
Abstract base class | Byte stream | Character stream |
---|---|---|
Input stream | InputStream | Reader |
Output stream | OutputStream | Writer |
Java Of IO Current co involved 40 Multiple classes , It's actually very regular , All from the above 4 Derived from an abstract base class
The subclass names derived from these four classes are all suffixed with their parent class names
边栏推荐
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- Recursion and recursion
- Hcip 13th day notes
- "Learning notes" recursive & recursive
- Bufferpool caching mechanism for executing SQL in MySQL
- pycuda._ driver. LogicError: explicit_ context_ dependent failed: invalid device context - no currently
- Fluent learning (5) GridView
- Sort merge sort
- How can enterprises and developers take advantage of the explosion of cloud native landing?
- D26: the nearest number (translation + solution)
猜你喜欢
How to solve win10 black screen with only mouse arrow
Actual combat | use composite material 3 in application
2022.02.14
webAssembly
[note] IPC traditional interprocess communication and binder interprocess communication principle
How can enterprises and developers take advantage of the explosion of cloud native landing?
The 2022 global software R & D technology conference was released, and world-class masters such as Turing prize winners attended
Common mode interference of EMC
Schematic diagram of crystal oscillator clock and PCB Design Guide
Fluent learning (4) listview
随机推荐
Format cluster and start cluster
How to solve the problem of computer networking but showing no Internet connection
The first game of the new year, many bug awards submitted
Pan Yueming helps Germany's Rochester Zodiac custom wristwatch
Selenium check box
Flutter internationalized Intl
D26: the nearest number (translation + solution)
Is the controller a single instance or multiple instances? How to ensure the safety of concurrency
540. Single element in ordered array
Recursive least square adjustment
X Opencv feature point detection and matching
FPGA tutorial and Allegro tutorial - link
Learning methods of zynq
Schematic diagram of crystal oscillator clock and PCB Design Guide
[Happy Valentine's day] "I still like you very much, like sin ² a+cos ² A consistent "(white code in the attached table)
finalize finalization finally final
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
What are the securities companies with the lowest Commission for stock account opening? Would you recommend it? Is it safe to open an account on your mobile phone
Arc135 partial solution
D27:mode of sequence (maximum, translation)