Flow overview :
stay java in , Different input and output sources are operated in the form of streams ( input , output ), Flow is an abstract description , A transfer method of representing data in a program
Jdk Different streams are provided to handle different input and output sources , According to the flow properties, it can be divided into the following types :
*
By flow direction ( From the perspective of procedure )
*
Input stream (input)
*
Output stream (output)
*
By type :
*
Byte stream (InputStream/OutputStream)
*
Any file can be transferred through a byte stream .
*
Character stream (Reader/Writer)
*
Non plain text file , Cannot use character stream , Can cause file format corruption , Can't execute normally .
*
*
Node flow ( Low level flow : Direct docking with input and output sources )
*
FileInputStream/FileOutputStream/FileReader/FileWriter/PrintStream/PrintWriter.
*
Process flow ( Advanced flow : Based on low-level flow )
*
Conversion flow :InputStreamReader/OutputStreamWriter, Byte flow character stream / Character flow byte stream
*
Buffer stream :BufferedInputStream/BufferedOutputStream
BufferedReader/BufferedReader Nodes can be wrapped in rows , Make reading and writing faster
Technology
Daily Recommendation