cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r420737 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/multipart/PartOnDisk.java
Date Tue, 11 Jul 2006 06:13:11 GMT
Author: antonio
Date: Mon Jul 10 23:13:10 2006
New Revision: 420737

URL: http://svn.apache.org/viewvc?rev=420737&view=rev
Log:
Change constructor to public. This helps to preload a cform upload Widget from a database
BLOB datatype.

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/multipart/PartOnDisk.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/multipart/PartOnDisk.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/multipart/PartOnDisk.java?rev=420737&r1=420736&r2=420737&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/multipart/PartOnDisk.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/multipart/PartOnDisk.java
Mon Jul 10 23:13:10 2006
@@ -29,7 +29,7 @@
  */
 public class PartOnDisk extends Part {
 
-    /** Field file           */
+    /** Field file */
     private File file = null;
     private int size;
 
@@ -39,13 +39,13 @@
      * @param headers
      * @param file
      */
-    protected PartOnDisk(Map headers, File file) {
+    public PartOnDisk(Map headers, File file) {
         super(headers);
         this.file = file;
-        
+
         // Ensure the file will be deleted when we exit the JVM
         this.file.deleteOnExit();
-        
+
         this.size = (int) file.length();
     }
 
@@ -89,7 +89,7 @@
     public String toString() {
         return file.getPath();
     }
-    
+
     /**
      * Delete the underlying file.
      */
@@ -99,14 +99,13 @@
             this.file = null;
         }
     }
-    
+
     /**
      * Ensures the underlying file has been deleted
      */
     public void finalize() throws Throwable {
         // Ensure the file has been deleted
         dispose();
-        
         super.finalize();
     }
 }



Mime
View raw message