The content of this article:
What is a stream
BYTE stream
Character Stream
Starting Date: 2018-07-24
what is a stream
Flow is an abstract concept, is an abstraction of input, the input stream can be regarded as
The abstract representation of different input/output sources (keyboards, files, network connections, etc.) in Java is Stream (stream).Java programs can access different input/output sources by using different streams. Stream (stream) can be
Java processing files in the class, stream at the end of the use of byte stream, reader and writer End is a character stream. The difference between the two is read and write, one is read by Byte, and the other is by character.
The bottom of the
Java processing files in the class, stream at the end of the use of byte stream, reader and writer End is a character stream. The difference between the two is read and write, one is read by Byte, and the other is by character.The bottom of the
Java IO producer stream and byte streamI. Basic Concepts
Stream: flows from one end to the other, from the source to the destination.Always centered on the program, it is a program and a file | array | Network Connection | database operations.
Ii.
Buffered streamsConvert streamObject FlowPrint FlowStandard input/output streamRandom Access StreamArray flowAbout Flush (): All of the output streams of the processing stream, the outermost stream needs to be refreshed.Javaio Flow1 Understanding
The operation of the byte stream and the character stream is basically the same, the difference is only the data unit of the operation is different: the data unit of the byte stream operation is the data unit character of bytes, character stream
Byte Stream and character streamFirst look at a nasty concept:All the data in the program is transmitted or saved in a stream, and the program needs the data to read the data using the input stream, and when the program needs to save some data, it
Basic concepts
Spring calls all vectors that can record information, such as various types of files, binary streams, and so on, as resources.
The most common resource for spring developers is the spring configuration file (usually an XML-formatted
Article transferred from http://blog.csdn.net/zxman660/article/details/7875799Byte Stream and character streamFirst look at a nasty concept:All the data in the program is transmitted or saved in a stream, and the program needs the data to read the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.