Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
java.io.IOException: Stream closed
is thrown when processing a local file
1-create a local file file:///exemple.txt
2-get the input stream : is
3-set a mark : is.mark(1024)
4-read the file until the end
5-reset the mark : is.reset()
the exception is thrown
here is a sample code :
InputStream is = f.getInputStream();
is.mark( 1024 );
while (true)
is.reset();