看板 java 關於我們 聯絡資訊
※ 引述《PsMonkey (痞子軍團團長)》之銘言: : ==站內信件== : ※ 引述《forkome (烏龜)》之銘言: : : 我想請教一下,程式當中的fis.read(text)的text意思是設定一個byte[]陣列給read : : 當緩衝用嗎?還是有什麼意思?為什麼要設定byte[]給他當參數呢? : read the API document first 小弟不才再請教一下 public int read(byte[] b) throws IOException Reads up to b.length bytes of data from this input stream into an array of bytes. This method blocks until some inpuis available. 他的意思是不是指依照b array的長度來讀取input stream裡的內容呢? 如果是的話,他為什麼要這麼做? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.134.226.208
PsMonkey:我原文是站內信件阿... 你想盡水桶嗎? ===.===||| 04/29 15:20