public int read(byte[] b,
                int off,
                int len)
         throws IOException
Reads up to len bytes of data from this input stream into an array of bytes. This method blocks until some input is available. b - the buffer into which the data is read.
off - the start offset of the data.
len - the maximum number of bytes read. 从当前的流中读字节到字节数组里。是从当前缓冲区中读数据,缓冲区的大小一定,off-指定一个开始读取数据的地址

解决方案 »

  1.   

    int off
    这个参数表示读入的byte保存在数组的第几个位置开始
      

  2.   

    use RandomAccessFile
        seek(position)
      

  3.   

    嘿嘿,不好意思,小弟最后问一句,像这些并不是很常用的类,你们是怎么弄清楚他们的用法的?有什么窍门吗?我刚开始做JAVA,以前是做C#的.doc解释得太过简单了,而且没有例子,很头痛.
      

  4.   

    看doc基本就可以了, 如果还想深入去看src.zip