read java.lang.Object
java.io.InputStream
java.io.FilterInputStream
public int read(byte[] b,
int off,
int len)
throws IOException
-
Reads up to
lenbytes of data from this input stream into an array of bytes. This method blocks until some input is available.This method simply performs
in.read(b, off, len)and returns the result. -
-
Overrides:
-
readin classInputStream
-
-
-
Parameters:
-
b- the buffer into which the data is read. -
off- the start offset of the data. //读取时的偏移量 -
len- the maximum number of bytes read.
Returns:
-
the total number of bytes read into the buffer, or
-1if there is no more data because the end of the stream has been reached.
Throws:
-
IOException- if an I/O error occurs.
See Also:
-
in
-
博客提及了Java中的输入流相关内容,涉及java.lang.Object、java.io.InputStream、java.io.FilterInputStream等类,还包含read操作。

被折叠的 条评论
为什么被折叠?



