You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2013/03/06 10:10:35 UTC
svn commit: r1453230 -
/commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/disk/DiskFileItemFactory.java
Author: simonetripodi
Date: Wed Mar 6 09:10:35 2013
New Revision: 1453230
URL: http://svn.apache.org/r1453230
Log:
trivial: code format, no functional modification
Modified:
commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/disk/DiskFileItemFactory.java
Modified: commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/disk/DiskFileItemFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/disk/DiskFileItemFactory.java?rev=1453230&r1=1453229&r2=1453230&view=diff
==============================================================================
--- commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/disk/DiskFileItemFactory.java (original)
+++ commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/disk/DiskFileItemFactory.java Wed Mar 6 09:10:35 2013
@@ -22,7 +22,6 @@ import org.apache.commons.fileupload.Fil
import org.apache.commons.fileupload.FileItemFactory;
import org.apache.commons.io.FileCleaningTracker;
-
/**
* <p>The default {@link org.apache.commons.fileupload.FileItemFactory}
* implementation. This implementation creates
@@ -65,28 +64,23 @@ public class DiskFileItemFactory impleme
// ----------------------------------------------------- Manifest constants
-
/**
* The default threshold above which uploads will be stored on disk.
*/
public static final int DEFAULT_SIZE_THRESHOLD = 10240;
-
// ----------------------------------------------------- Instance Variables
-
/**
* The directory in which uploaded files will be stored, if stored on disk.
*/
private File repository;
-
/**
* The threshold above which uploads will be stored on disk.
*/
private int sizeThreshold = DEFAULT_SIZE_THRESHOLD;
-
/**
* <p>The instance of {@link FileCleaningTracker}, which is responsible
* for deleting temporary files.</p>
@@ -96,7 +90,6 @@ public class DiskFileItemFactory impleme
// ----------------------------------------------------------- Constructors
-
/**
* Constructs an unconfigured instance of this class. The resulting factory
* may be configured by calling the appropriate setter methods.
@@ -105,7 +98,6 @@ public class DiskFileItemFactory impleme
this(DEFAULT_SIZE_THRESHOLD, null);
}
-
/**
* Constructs a preconfigured instance of this class.
*
@@ -123,7 +115,6 @@ public class DiskFileItemFactory impleme
// ------------------------------------------------------------- Properties
-
/**
* Returns the directory used to temporarily store files that are larger
* than the configured size threshold.
@@ -137,7 +128,6 @@ public class DiskFileItemFactory impleme
return repository;
}
-
/**
* Sets the directory used to temporarily store files that are larger
* than the configured size threshold.
@@ -151,7 +141,6 @@ public class DiskFileItemFactory impleme
this.repository = repository;
}
-
/**
* Returns the size threshold beyond which files are written directly to
* disk. The default value is 10240 bytes.
@@ -164,7 +153,6 @@ public class DiskFileItemFactory impleme
return sizeThreshold;
}
-
/**
* Sets the size threshold beyond which files are written directly to disk.
*
@@ -177,7 +165,6 @@ public class DiskFileItemFactory impleme
this.sizeThreshold = sizeThreshold;
}
-
// --------------------------------------------------------- Public Methods
/**
@@ -205,7 +192,6 @@ public class DiskFileItemFactory impleme
return result;
}
-
/**
* Returns the tracker, which is responsible for deleting temporary
* files.
@@ -226,4 +212,5 @@ public class DiskFileItemFactory impleme
public void setFileCleaningTracker(FileCleaningTracker pTracker) {
fileCleaningTracker = pTracker;
}
+
}