Introduction to Java IO

Source: Internet
Author: User

-------------siwuxie095

Introduction to Java IO:

IO also writes "I/O", which can be understood as in and out, i.e. input and output

Therefore, the basic function of IO system is to read (fetch) and write (enter)

IO Stream (core of IO system)

function: Read and write data on the device, hard disk file, memory, keyboard, network data ...

Depending on the direction of the data, it can be divided into: input stream, output stream

Depending on the type of data processed, it can be divided into: byte stream, character stream

The difference between a byte stream and a character stream:

A byte stream can handle all types of data, such as MP3, pictures, text, video, and so on. When reading,

Read a byte to return a byte

"The corresponding class in Java ends with" Stream "

Character streams can only handle plain text data, such as txt text. When reading, read one or more bytes,

Finds the specified encoding table first, and then returns the detected characters

"The corresponding classes in Java End with" Reader "or" Writer "

"Made by siwuxie095"

Introduction to Java IO

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.