在查看InputStream类时,没有看到判断是否支持seek的方法或者属性,但是发现了在skip()方法的描述中有这样一句话:
* @exception IOException if the stream does not support seek, * or if some other I/O error occurs.
调用skip()必须支持seek,如何判断他是否支持seek呢?或者说如何判断抛出的错误是stream不支持seek呢?
在查看InputStream类时,没有看到判断是否支持seek的方法或者属性,但是发现了在skip()方法的描述中有这样一句话:
* @exception IOException if the stream does not support seek, * or if some other I/O error occurs.
调用skip()必须支持seek,如何判断他是否支持seek呢?或者说如何判断抛出的错误是stream不支持seek呢?