public abstract int read() throws IOException 意为读取一个字节,并返回读取到的这个字节的int形式变量.
public int read(byte b[], int off, int len) throws IOException 和 public int read(byte b[]) throws IOException与之前的说到的输出流意思几乎一样,只不过这个是输入到b数组里边去.返回值为读取到的字节总数.
skip
public long skip(long n) throws IOException这个方法的意义是从输入流中跳过数个字节,返回值就是实际上跳过的字节数.其返回值和n不一定相等,原因是有可能剩下没有足够的字节数供其跳过.一般而言,这个方法是用来跳过输入流中不必要的内容的,例如说空格,换行,制表符之类的.