InputStream.read()
InputStream有如下三个read方法
public abstract int read()
public int read(byte[] b)
public int read(byte[] b,int off,int len)
read() 从输入流中读取数据的下一个字节
read(byte[] b) 从输入流中读取一定数量的字节,并将其存储在缓冲区数组 b 中。以整数形式返回实际读取的字节数
read(byte[] b, int off, int len) 将输入流中最多 len 个数据字节读入 byte 数组。尝试读取 len 个字节,但读取的字节也可能小于该值。以整数形式返回实际读取的字节数