InputStream.skip方法的思考

在java.io.InputStream类中定义了skip这个方法。在API中的描述如下:

skip

public long skip(long n)
          throws IOException
Skips over and discards  n bytes of data from this input stream. The  skip method may, for a variety of reasons, end up skipping over some smaller number of bytes, possibly  0. This may result from any of a number of conditions; reaching end of file before n bytes have been skipped is only one possibility. The actual number of bytes skipped is returned. If  n is negative, no bytes are skipped.

The skip method of this

你可能感兴趣的:(J2SE,stream,file,byte,api,input,class)