public abstract int read ()
方法返回的是读取的字节然后转换成int的形式Reads a single byte from this stream and returns it as an integer in the range from 0 to 255. Returns -1 if the end of the stream has been reached.
public int read (byte[] buffer, int byteOffset, int byteCount)
方法返回的是实际读取的的字节数 ,将所读取的字节存到buffer中 Reads up to byteCount
bytes from this stream and stores them in the byte array buffer
starting at byteOffset
. Returns the number of bytes actually read or -1 if the end of the stream has been reached.