提问
Topic sourcepublic int read(byte[] b, int off, int len) throws IOException {
int n = in.read(b, off, len);
this.count += n;
return n;
}
不太懂这两个函数里的in.read()调用的到底是哪个read函数,是现在构造的函数read,还是之前inputstream自己本身就有的read函数呢?
- 1
public int read(byte[] b, int off, int len) throws IOException {
int n = in.read(b, off, len);
this.count += n;
return n;
}
不太懂这两个函数里的in.read()调用的到底是哪个read函数,是现在构造的函数read,还是之前inputstream自己本身就有的read函数呢?
拆开宇宙
public int read(byte[] b, int off, int len) throws IOException {
int n = in.read(b, off, len);
this.count += n;
return n;
}
这段我删掉之后依然得出之前的结果,想问问作用。