文件读取IO异常java.io.IOException: mark/reset not supported at java.io.InputStream.reset
2018-01-03 14:39
956 查看
当给定的流不支持mark和reset就会报这个错误,解决方案是用BufferedInputStream把原来的流包一层.
什么时候会出现这种错误呢?获取到一个网络流,这个网络流不允许读写头来回移动,也就不允许mark/reset机制.
什么时候会出现这种错误呢?获取到一个网络流,这个网络流不允许读写头来回移动,也就不允许mark/reset机制.
BufferedInputStream zipTest=new BufferedInputStream(zip);
相关文章推荐
- java.io.IOException: mark/reset not supported
- java.io.IOException: mark/reset not supported
- 通过Struts2文件下载时Can not find a java.io.InputStream with the name 异常
- SSH 文件下载发生异常: Can not find a java.io.InputStream with the name [inputStream] in the invocation sta
- 找不到文件异常java.io.IOException: Resource [classpath:shiro.ini] could not be found.
- 遇到问题----struts2文件下载出现Can not find a java.io.InputStream with the name的错误
- struts2文件的下载,Can not find a java.io.InputStream with the name [inputStream] in the invocation stack. Check the tag specified
- struts2文件下载出现Can not find a java.io.InputStream with the name的错误
- HBase异常:java.io.IOException: Connection reset by peer
- struts2文件下载出现Can not find a java.io.InputStream with the name的错误
- 遇到问题----struts2文件下载出现Can not find a java.io.InputStream with the name的错误
- struts2下载文件时严重: Can not find a java.io.InputStream with the name [targetFile] in the invocation
- 文件下载Can not find a java.io.InputStream with the name [inputStream] in the invocation stack错误
- struts2文件下载出现Can not find a java.io.InputStream with the name的错误
- hadoop异常 java.io.IOException: Job status not available
- struts2文件下载出现Can not find a java.io.InputStream with the name的错误
- strut2下载时候的一种异常 Can not find a java.io.InputStream with the name [inputStream] in the invocation stack
- 用poi处理excel文件异常:java.io.IOException: Invalid header signature; read 2338042707334752323
- struts2文件下载 出现Can not find a java.io.InputStream with the name的错误
- (Struts2文件下载)Can not find a java.io.InputStream with the name [inputStream] in the invocation stack