我想查 InputStream 里面的read方法 用eclipse ctrl了一下
public int read(byte b[]) throws IOException {
return readBytes(b, 0, b.length);
}然后我再查了一下这个readBytes结果:
private native int readBytes(byte b[], int off, int len) throws IOException; /**
* Reads up to <code>b.length</code> bytes of data from this input
* stream into an array of bytes. This method blocks until some input
* is available.
*
* @param b the buffer into which the data is read.
* @return the total number of bytes read into the buffer, or
* <code>-1</code> if there is no more data because the end of
* the file has been reached.
* @exception IOException if an I/O error occurs.
*/就没代码了 是不是那个native
就是不不能看啊
public int read(byte b[]) throws IOException {
return readBytes(b, 0, b.length);
}然后我再查了一下这个readBytes结果:
private native int readBytes(byte b[], int off, int len) throws IOException; /**
* Reads up to <code>b.length</code> bytes of data from this input
* stream into an array of bytes. This method blocks until some input
* is available.
*
* @param b the buffer into which the data is read.
* @return the total number of bytes read into the buffer, or
* <code>-1</code> if there is no more data because the end of
* the file has been reached.
* @exception IOException if an I/O error occurs.
*/就没代码了 是不是那个native
就是不不能看啊
要想直到是什么可以看一下jni的相关知识