Java IO stream

Source: Internet
Author: User

Classification of streams

1, according to the flow of flows into the input stream, output stream 2 kinds.

Input stream: Can only be read from, cannot write data to it;

Output stream: You can write to it only, and you cannot read the data from it.

Java input stream mainly by InputStream and reader as the base class, the output stream mainly by OutputStream and writer as the base class, 4 base classes are abstract class, cannot create the instance directly.

2. Byte stream and character stream

The data unit for a byte stream operation is a 8-bit byte, and the character stream is manipulated by 16-bit characters.

Byte stream mainly by InputStream and OutputStream as the base class, character stream mainly by reader and writer as the base class.

Java IO stream

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.