remm        01/03/10 12:33:40

  Modified:    src/stores/slidestore/reference FileContentStore.java
  Log:
  - Close the input stream after finishing reading content.
    Fix the problem reported by Andre Paradis <andre.paradis at versalys.com>
    when moving resources stored by the FileContentStore.
  
  Revision  Changes    Path
  1.6       +6 -4      
jakarta-slide/src/stores/slidestore/reference/FileContentStore.java
  
  Index: FileContentStore.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/stores/slidestore/reference/FileContentStore.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- FileContentStore.java     2001/02/26 13:46:15     1.5
  +++ FileContentStore.java     2001/03/10 20:33:39     1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/stores/slidestore/reference/FileContentStore.java,v 1.5 
2001/02/26 13:46:15 juergen Exp $
  - * $Revision: 1.5 $
  - * $Date: 2001/02/26 13:46:15 $
  + * $Header: 
/home/cvs/jakarta-slide/src/stores/slidestore/reference/FileContentStore.java,v 1.6 
2001/03/10 20:33:39 remm Exp $
  + * $Revision: 1.6 $
  + * $Date: 2001/03/10 20:33:39 $
    *
    * ====================================================================
    *
  @@ -76,7 +76,7 @@
    * Filesystem implementation of ContentStore.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Remy Maucherat</a>
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.6 $
    */
   public class FileContentStore extends AbstractSimpleService
       implements ContentStore {
  @@ -310,6 +310,7 @@
                       position = position + nChar;
                   }
                   os.close();
  +                is.close();
                   
                   if (contentLength != -1) {
                       if (position != contentLength) {
  @@ -389,6 +390,7 @@
                       position = position + nChar;
                   }
                   os.close();
  +                is.close();
                   
                   if (contentLength != -1) {
                       if (position != contentLength) {
  
  
  

Reply via email to