All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class WebSite.Servlet.FormFile

java.lang.Object
   |
   +----java.io.File
           |
           +----WebSite.Servlet.FormFile

public class FormFile
extends File

Extended File object for files uploaded using the form-based file upload feature of some browsers/clients. This class contains additional properties and access methods specific to this type of file.

These objects are created only within the WebSite.Servlet package. You cannot create them yourself.

See Also:
Form, File

Method Index

 o getClientName()
Gets the pathname of the file as specified by the client in the upload form.
 o getContentLength()
Gets the length in bytes of the uploaded file.
 o getContentTransferEncoding()
Gets the transfer encoding type (Content-Transfer-Encoding:) of the uploaded file, as specified by the client.
 o getContentType()
Gets the media content type (Content-Type:) of the uploaded file, as specified by the client.
 o getFieldName()
Gets the form field name of the uploaded file.

Methods

 o getFieldName
 public String getFieldName()
Gets the form field name of the uploaded file. This is the name used in the <FILE> tag in the form.

 o getContentLength
 public int getContentLength()
Gets the length in bytes of the uploaded file.

 o getContentType
 public String getContentType()
Gets the media content type (Content-Type:) of the uploaded file, as specified by the client.

 o getContentTransferEncoding
 public String getContentTransferEncoding()
Gets the transfer encoding type (Content-Transfer-Encoding:) of the uploaded file, as specified by the client.

 o getClientName
 public String getClientName()
Gets the pathname of the file as specified by the client in the upload form.


All Packages  Class Hierarchy  This Package  Previous  Next  Index