Classes involved in Java read I/O operations

Source: Internet
Author: User
First, take a look at the classes involved in I/O operations:

The first two groups mainly describe the format of data transmission, one is a byte, and the other is a character.

The latter two groups mainly describe the way data is transmitted.

1.1.1 The following is a byte-based I/O operation interface.

InputStream interface

OutputStream interface

1.1.2 Character-based I/O operation interface

Writer class

Reader class


1.1.3 Character and Byte conversion interface

The conversion process is read as follows:

Where InputStreamReader is a conversion from byte to Character Bridge, from InputStream to reader conversion needs to specify the encoding character set, otherwise it will appear garbled.

The process in which it is written is converted as follows:

Classes involved in Java read I/O operations

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.