In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to carry out the io system analysis of java. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
I. Input and Output
1. Stream represents any data source that has the ability to produce data, or any receiving source that has the ability to receive data. In Java's IO, all stream (including Input and Out stream) include two types:
1.1 Byte-oriented stream
A byte-oriented stream, which means that information is read from or written to stream in bytes. Byte-oriented stream includes the following types:
1) input stream:
1) ByteArrayInputStream: use a buffer in memory as InputStream
2) StringBufferInputStream: use a String object as an InputStream
3) FileInputStream: use a file as InputStream to read the file
4) PipedInputStream: implements the concept of pipe, which is mainly used in threads
5) SequenceInputStream: merge multiple InputStream into a single InputStream
2) Out stream
1) ByteArrayOutputStream: store the information in a buffer in memory
2) FileOutputStream: store the information in the file
3) PipedOutputStream: implements the concept of pipe, which is mainly used in threads
4) SequenceOutputStream: merge multiple OutStream into a single OutStream
1.2 Unicode character-oriented stream
Stream, which is guided by Unicode characters, means that information is read from or written to stream in units of Unicode characters. Unicode character-oriented stream includes the following types:
1) Input Stream
1) CharArrayReader: corresponding to ByteArrayInputStream
2) StringReader: corresponding to StringBufferInputStream
3) FileReader: corresponding to FileInputStream
4) PipedReader: corresponding to PipedInputStream
2) Out Stream
1) CharArrayWrite: corresponding to ByteArrayOutputStream
2) StringWrite: there is no corresponding byte-oriented stream
3) FileWrite: corresponding to FileOutputStream
4) PipedWrite: corresponding to PipedOutputStream
On how to carry out java io system analysis is shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.