Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-119

Stream closed by the monitor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • 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)

      { int data = is.read(); if (data == -1) break; }

      is.reset();

      Attachments

        Issue Links

          Activity

            People

              otto Otto Fowler
              ppoulard Philippe Poulard
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: