涓�銆乯ava.io.BufferedOutputStream extends OutputStream 瀛楄妭杈撳嚭缂撳啿娴�
鐖剁被鐨勬柟娉曞彲浠ョ洿鎺ヤ娇鐢�
聽 聽 write(int b) 鍐欎竴涓瓧鑺�
聽 聽 wrtie(byte[] bytes) 鍐欎竴涓瓧鑺傛暟缁�
聽 聽 wrtie(byte[] bytes,int start ,int length) 鍐欏瓧鑺傛暟缁勭殑涓�閮ㄥ垎
鏋勯�犳柟娉�
聽 聽 BufferedOutputStream(OutputStream out)
聽 聽 鍙傛暟
聽 聽 聽 聽 OutputStream out锛氭墍鏈夊瓧鑺傝緭鍑烘祦鐨勮秴绫� 鎶借薄绫�
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 鍙互浼犲叆鍏朵换鎰忓瓙绫诲璞�
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 FileOutputStream
浜屻�乯ava.io.BufferedInputStream extends InputStream 瀛楄妭杈撳叆缂撳啿娴�
鍙互浣跨敤鐖剁被鐨勬柟娉�
聽 聽 int read() 璇讳竴涓瓧鑺�
聽 聽 int read(byte[] bytes) 璇讳竴涓瓧鑺傛暟缁�
BufferedInputStream
聽 聽 鏋勯�犳柟娉�
聽 聽 聽 聽 BufferedInputStream(InputStream in)
聽 聽 聽 聽 鍙傛暟
聽 聽 聽 聽 InputStream in:鎵�鏈夊瓧鑺傝緭鍏ユ祦鐨勮秴绫� 鍙互浼犲叆鍏朵换鎰忓瓧鑺傚璞�
涓夈�乯ava.io.BufferedWriter extends Writer 瀛楃杈撳嚭缂撳啿娴�
鐖剁被鐨勬柟娉曢兘鍙互浣跨敤
聽 聽 write(int c)
聽 聽 write(char[] chs)
聽 聽 write(char[] chs,int start,int length)
聽 聽 write(String str)
鐗规湁鏂规硶
聽 聽 newLine() 鍐欐崲琛�
鏋勯�犳柟娉�
聽 聽 BufferedWriter(Writer w)
聽 聽 鍙傛暟
聽 聽 聽 聽 Writer w: 鎵�鏈夊瓧绗﹁緭鍑烘祦鐨勮秴绫� 鎶借薄绫�
聽 聽 聽 聽 聽 聽 聽 聽 聽 鍙互浼犲叆鍏朵换鎰忓瓙绫诲璞� FileWriter
鍥涖�乯ava.io.BufferedReader extends Reader 瀛楃杈撳叆缂撳啿娴�
鍙互浣跨敤鐖剁被鐨勬柟娉�
聽 聽 int read() 璇讳竴涓瓧绗�
聽 聽 int read(char[] chs)璇讳竴涓瓧绗︽暟缁�
鐗规湁鏂规硶
聽 聽 String readLine() 涓�娆¤涓�琛� 涓嶈鍙栨崲琛岀 閬囧埌鍥炶溅鎹㈣灏变笉璇讳簡
聽 聽 readLine锛堬級杩斿洖鐨勬槸String绫诲瀷
鏋勯�犳柟娉�
聽 聽 BufferedReader(Reader r)
聽 聽 鍙傛暟
聽 聽 聽 Reader r:鎵�鏈夊瓧绗﹁緭鍏ユ祦鐨勮秴绫� 鍙互浼犲叆鍏朵换鎰忓瓙绫诲璞�
聽 聽 聽 聽 聽 聽 聽 聽 FileReader
浜斻�乯ava.io.InputStreamReader extends Reader 瀛楄妭閫氬線瀛楃鐨勬ˉ姊�
鍙互浣跨敤鐖剁被鐨勬柟娉�
聽 聽 int read()
聽 聽 int read(char[] chs)
鏋勯�犳柟娉�
聽 聽 InputStreamReader(InputStream in)
聽 聽 InputStreamReader(InputStream in,String charsetName)
聽 聽 鍙傛暟
聽 聽 聽 聽 InputStream in: 鎵�鏈夊瓧鑺傝緭鍏ユ祦鐨勮秴绫� 鍙互浼犲叆鍏朵换鎰忓瓙绫诲璞÷� FileInputStream
聽 聽 聽 聽 String charsetName:鎸囧畾缂栫爜琛� 涓嶅彲浠ヤ贡鎸囧畾浼氭姏寮傚父聽 鎴戜滑姝e父鎸囧畾 GBK utf-8
聽 聽 聽 聽 涓嶅尯鍒嗗ぇ灏忓啓
聽 聽 聽 聽 濡傛灉涓嶆寚瀹氶粯璁ょ紪鐮� idea宸ヤ綔绌洪棿鐨勭紪鐮�
鍏�乯ava.io.OutputStreamWriter extends Writer 瀛楃閫氬線瀛楄妭鐨勬ˉ姊�
鍙互浣跨敤鐖剁被鐨勬柟娉�
聽 聽 聽 聽 write(int c)
聽 聽 聽 聽 write(char[] chs)
聽 聽 聽 聽 write(char[] chs,int start,int length)
聽 聽 聽 聽 write(String str)
聽 聽 鏋勯�犳柟娉�
聽 聽 聽 聽 OutputStreamWriter(OutputStream out) 涓嶆寚瀹氱紪鐮佷娇鐢ㄥ伐浣滅┖闂撮粯璁ょ紪鐮�
聽 聽 聽 聽 OutputStreamWriter(OutputStream out,String charsetName)
聽 聽 聽 聽 鍙傛暟
聽 聽 聽 聽 聽 OutputStream out:鎵�鏈夊瓧鑺傝緭鍑烘祦鐨勮秴绫� 鍙互浼犲叆鍏朵换鎰忓瓙绫诲璞� FileOutputStream
聽 聽 聽 聽 聽 String charsetName:鎸囧畾缂栫爜琛� 涓嶅彲浠ヤ贡鎸囧畾浼氭姏寮傚父聽 鎴戜滑姝e父鎸囧畾 GBK utf-8
聽 聽 聽 聽 聽 涓嶅尯鍒嗗ぇ灏忓啓
聽 聽 聽 聽 聽 濡傛灉涓嶆寚瀹氶粯璁ょ紪鐮� idea宸ヤ綔绌洪棿鐨勭紪鐮�
涓冦�乯ava.io.ObjectOutputStream 搴忓垪鍖栨祦
鏂规硶
聽 聽 writeObject(Object obj)
鏋勯�犳柟娉�
聽 聽 ObjectOutputStream(OutputStream out)
聽 聽 鍙傛暟
聽 聽 聽 OutputStream out:鎵�鏈夊瓧鑺傝緭鍑烘祦鐨勮秴绫� 鍙互浼犲叆鍏朵换鎰忓瓙绫诲璞�
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 FileOutputStream
鍏�乯ava.io.ObjectInputStream 鍙嶅簭鍒楀寲娴�
鏂规硶
聽 聽 Object readObject() 璇诲璞�
鏋勯�犳柟娉�
聽 聽 ObjectInputStream(InputStream in)
聽 聽 鍙傛暟
聽 聽 聽 InputStream in:鎵�鏈夊瓧鑺傝緭鍏ユ祦鐨勮秴绫� 鍙互浼犲叆鍏朵换鎰忓瓙绫诲璞�
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 FileInputStream
Serializable搴忓垪鍖栨帴鍙� 娌℃湁浠讳綍鏂规硶
鎴戜滑绉拌繖绉嶆病鏈夋柟娉曠殑鎺ュ彛鍙仛 鏍囪鍨嬫帴鍙�
瀹炵幇姝ゆ帴鍙e彲浠ュ簭鍒楀寲 涓嶅疄鐜版鎺ュ彛涓嶅彲浠ュ簭鍒楀寲
闈欐�佸唴瀹逛笉鑳藉簭鍒楀寲
鐬�佸唴瀹逛篃涓嶈兘搴忓垪鍖�
transient:鐬�佸叧閿瓧 闃绘鎴愬憳搴忓垪鍖�
涔濄�佹墦鍗版祦
PrintStream 瀛楄妭鎵撳嵃娴�
PrintWriter聽 瀛楃鎵撳嵃娴�
println 鍘熸牱杈撳嚭