I. Update IO stream due to temperature (I) and update io stream

Source: Internet
Author: User

I. Update IO stream due to temperature (I) and update io stream
IO stream for better understanding (1)

Accumulate and share

Glossary:

Stream

A stream is a continuous input or input by a program.Byte sequence.

Byte stream

Byte streams are composed of bytes and are mainly used to process binary data. More powerful, byte streams can process any data (binary, text, images, audio and video)

What is upstream stream and its source?

In actual application, a lot of data is text. Therefore, the concept of the bytes stream is proposed based on the byte stream. It is processed by the encode (encoding table) of the Java Virtual Machine, that is, to convert character sets.
When converting bytes to bytes streams, it is actually converted from byte [] to String. public String (byte bytes [], String charsetName) has a key parameter character set encoding, we usually omit it, so the system uses the default encoding table of the operating system.
In short, bytes stream = byte stream + encoding table

IO stream 4 abstract base classes

Byte stream:

Ghost stream:

Importantly, in the four abstract base classes, the names of the base classes are used as suffixes. For example, FileInputStream can be seen as a byte input stream at a glance.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.