JavaSE鎬荤粨锛�10锛塈O娴侊紙2锛�

涓�銆乯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聽 瀛楃鎵撳嵃娴�

print

println 鍘熸牱杈撳嚭

你可能感兴趣的:(JavaSE鎬荤粨锛�10锛塈O娴侊紙2锛�)