User: user57  
  Date: 02/04/04 14:30:52

  Modified:    src/main/org/jboss/deployment/cache FileDeploymentStore.java
  Log:
   o buffer input on copy
   o changed ser state filename to state-map.ser
  
  Revision  Changes    Path
  1.3       +4 -4      
jboss-system/src/main/org/jboss/deployment/cache/FileDeploymentStore.java
  
  Index: FileDeploymentStore.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss-system/src/main/org/jboss/deployment/cache/FileDeploymentStore.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FileDeploymentStore.java  4 Apr 2002 04:33:58 -0000       1.2
  +++ FileDeploymentStore.java  4 Apr 2002 22:30:52 -0000       1.3
  @@ -45,7 +45,7 @@
    *
    * @todo Validate the urlMap
    *
  - * @version <tt>$Revision: 1.2 $</tt>
  + * @version <tt>$Revision: 1.3 $</tt>
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
    */
   public class FileDeploymentStore
  @@ -105,7 +105,7 @@
         log.debug("Using directory for cache storage: " + dir);
   
         // the map file to use
  -      this.mapFile = new File(dir, "url-map.ser");
  +      this.mapFile = new File(dir, "state-map.ser");
      }
   
      /**
  @@ -209,7 +209,7 @@
       */
      protected void copyURL(final URL source, final File dest) throws IOException
      {
  -      InputStream is = source.openConnection().getInputStream();
  +      InputStream is = new 
BufferedInputStream(source.openConnection().getInputStream());
         OutputStream os = new BufferedOutputStream(new FileOutputStream(dest));
   
         try {
  @@ -217,8 +217,8 @@
            os.flush();
         }
         finally {
  -         is.close();
            os.close();
  +         is.close();
         }
      }
         
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to