Home » Java » IO flow

IO flow

1: Classification (flow points: read and write) (operation byte InputStream and OutputSteam and character Writer and Reader)

Two: FileWriter

Requirement: in a word: Hello, I'm here, ==>text.txt in

Three: FileReader

Requirement: reads text content to the console above,

Four: FileOutputStream (byte output stream)

Export the contents of the Java program to a text file;

Five: FileInputStream (byte input stream)

Export text file contents to the console above,

Six: BufferedWriter (write data) newLine ()

Seven: BufferedReader (read data) readLine ()



Eight: input output stream: System.out; System.in;



Nine: conversion stream:

InputStreamReader (BufferedReader) = > readLine (
)
Requirements: keyboard to text file

OutputStreamWriter

Requirements: text file to console display



Ten: print stream

PrintStream and PrintWriter (write data only and do not read data)



Eleven: serialization stream and anti serialization stream

Serialization: ObjectOutputStream and ObjectInputStream



Twelve: Properties attribute set


transfers from: http://blog.csdn.net/zzp_403184692/article/details/8057693

Latest