cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r420738 - /cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/multipart/PartOnDisk.java
Date Tue, 11 Jul 2006 06:14:11 GMT
Author: antonio
Date: Mon Jul 10 23:14:10 2006
New Revision: 420738

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

Modified:
    cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/multipart/PartOnDisk.java

Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/multipart/PartOnDisk.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/multipart/PartOnDisk.java?rev=420738&r1=420737&r2=420738&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/multipart/PartOnDisk.java
(original)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/multipart/PartOnDisk.java
Mon Jul 10 23:14:10 2006
@@ -28,7 +28,7 @@
  */
 public class PartOnDisk extends Part {
 
-    /** Field file           */
+    /** Field file */
     private File file = null;
     private int size;
 
@@ -38,13 +38,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();
     }
 
@@ -87,7 +87,7 @@
     public String toString() {
         return file.getPath();
     }
-    
+
     /**
      * Delete the underlying file.
      */
@@ -97,14 +97,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