Java-preliminary understanding of-I/O stream (character stream-buffer-bufferwriter)

Source: Internet
Author: User

One.

For buffers, also classified, buffered read and buffered write. Now explain the buffer write.

Why there are bufferwriter such objects exist, that is, the previous ch,buf and other things and flow objects together, so that they become a whole.

By incorporating the buffered functionality, the stream object is really an efficient object class.

Strangely, there is no buffer used to write the writer character stream object here. Does it say that buffers are available?

Use the Buffer object after the following syntax:

After reading the program, it is not the same as the buffer object I understand. I thought it was a buffer stream object, not a buffer object, and the stream object added the buffered functionality.

The buffer is actually encapsulated as an object, no longer a simple variable or array, but an object class.

Java-preliminary understanding of-I/O stream (character stream-buffer-bufferwriter)

Related Article

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.