Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How many IO flows are divided into Java?


May 28, 2021 Article blog


Table of contents


IO streams in Java are no strangers, so what are the types of IO flows? This article tells you

How many Java IO flows are there?

  • The flow of the stream is divided into input and output streams
  • The operating unit is divided into byte streams and character streams
  • The role of the stream is divided into node flow and processing flow

Java IO flow involves more than 40 classes, which may seem cluttered, but are actually very planned and have very close exercises with each other, all derived from four abstract class base classes.

  • InputStream/Reader: The base class for all input streams, the former being the byte input stream and the latter being the character input stream.
  • OutputStream/Writer: The base class for all output streams, the former being the byte output stream and the latter being the character output stream.

How to classify the structure diagram

 How many IO flows are divided into Java?1

The operation object classification structure diagram

 How many IO flows are divided into Java?2


Here's what the little editor brings you about the IO flow in Java.