java中字符流一次到底讀幾個(gè)字節(jié)

馬克-to-win:注意如果當(dāng)遇到英文時(shí),字符流足夠聰明,一次就讀一個(gè)字節(jié),如遇到中文,一次讀兩個(gè)字節(jié)。比如a就占一個(gè)字節(jié),即97.見下面的例子。我們摘錄一段java官方文檔:Each invocation of one of an InputStreamReader's read() methods may cause one or more bytes to be read from the underlying byte input stream.馬克- to-win:馬克 java社區(qū):防盜版實(shí)名手機(jī)尾號: 73203。