sullis 2003/03/07 15:29:27
Modified: fileupload/src/java/org/apache/commons/fileupload
DefaultFileItem.java
Log:
added javadoc comments
updated copyright year for 2003
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.16 +25 -6
jakarta-commons/fileupload/src/java/org/apache/commons/fileupload/DefaultFileItem.java
Index: DefaultFileItem.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/fileupload/src/java/org/apache/commons/fileupload/DefaultFileItem.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- DefaultFileItem.java 1 Mar 2003 21:17:44 -0000 1.15
+++ DefaultFileItem.java 7 Mar 2003 23:29:26 -0000 1.16
@@ -7,7 +7,7 @@
*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2001-2002 The Apache Software Foundation. All rights
+ * Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -77,7 +77,7 @@
/**
- * <p> The default mplementation of the
+ * <p> The default implementation of the
* [EMAIL PROTECTED] org.apache.commons.fileupload.FileItem FileItem} interface.
*
* <p> After retrieving an instance of this class from a [EMAIL PROTECTED]
@@ -94,6 +94,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
* @author <a href="mailto:[EMAIL PROTECTED]">John McNally</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Martin Cooper</a>
+ * @author Sean C. Sullivan
*
* @version $Id$
*/
@@ -158,6 +159,9 @@
/**
* Default constructor.
+ *
+ * @see #DefaultFileItem(String, String)
+ *
*/
public DefaultFileItem()
{
@@ -173,6 +177,9 @@
* @param fileName The original filename in the user's filesystem.
* @param contentType The content type passed by the browser or
* <code>null</code> if not defined.
+ *
+ * @see #DefaultFileItem()
+ *
*/
protected DefaultFileItem(String fileName, String contentType)
{
@@ -483,6 +490,9 @@
* this file item.
*
* @return The name of the form field.
+ *
+ * @see #setFieldName(String)
+ *
*/
public String getFieldName()
{
@@ -494,6 +504,9 @@
* Sets the field name used to reference this file item.
*
* @param fieldName The name of the form field.
+ *
+ * @see #getFieldName()
+ *
*/
public void setFieldName(String fieldName)
{
@@ -507,6 +520,9 @@
*
* @return <code>true</code> if the instance represents a simple form
* field; <code>false</code> if it represents an uploaded file.
+ *
+ * @see #setIsFormField(boolean)
+ *
*/
public boolean isFormField()
{
@@ -520,6 +536,9 @@
*
* @param state <code>true</code> if the instance represents a simple form
* field; <code>false</code> if it represents an uploaded file.
+ *
+ * @see #isFormField()
+ *
*/
public void setIsFormField(boolean state)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]