Java (iv)--io stream

Source: Internet
Author: User

(i) Java streaming input/output principle:


In Java programs, input/output operations for data are carried out in a "stream" way to obtain different kinds of data, which are entered or output by standard methods in the program.



(ii) java.io abstract stream Classification:



node flow and processing flow:


A node stream can read and write data (files, memory) from a specific data source (node)



The processing flow is a "connection" over an existing stream (either a node stream or a processing stream), which provides the program with more powerful read and write capabilities through the processing of the data.



Basic methods of Io Flow:


Node stream: Write or read out

Processing flow: Converting data types


General diagram:



(iii) Summary:


is a beginner, so summed up there is not comprehensive place. In learning this piece of time, we should have full imagination, imagine a variety of channels to input and output data. This piece of son will also learn, and so on, in the back to fill this piece of knowledge! Please also give us a lot of advice!

Java (iv)--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.