Re: [問題] 有關FileInuptStream...

看板java作者 (烏龜)時間18年前 (2006/04/29 15:15), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串5/7 (看更多)
※ 引述《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

04/29 15:20, , 1F
我原文是站內信件阿... 你想盡水桶嗎? ===.===|||
04/29 15:20, 1F
文章代碼(AID): #14Kn9t1R (java)
討論串 (同標題文章)
文章代碼(AID): #14Kn9t1R (java)