OOP MimeParser Version 3.5

com.bentofw.mime
Class SavedFile

java.lang.Object
  extended by com.bentofw.mime.SavedFile

public class SavedFile
extends java.lang.Object

The instance of this class represents the name of FILE INPUT and the java.io.File object.

For example, when the files are uploaded from the FORM like:

FORM for file upload
and these 2 files are saved into the local file system on the server side, you can get the 2 instances of this class, each of which represents: Thus, the instance of this class represents the association of the name of FILE INPUT and the java.io.File object.

Author:
Jun Inamori
See Also:
ParsedData.getAllFiles()

Method Summary
 java.io.File getFile()
          The instance of java.io.File for the file which is saved into the local file system.
 java.lang.String getKey()
          The name of the FILE INPUT in your FORM.
 java.lang.String getMimeType()
          Returns the mime-type for the uploaded file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getKey

public java.lang.String getKey()
The name of the FILE INPUT in your FORM.

Returns:
The name of the FILE INPUT.

getFile

public java.io.File getFile()
The instance of java.io.File for the file which is saved into the local file system.

Returns:
The instance of java.io.File

getMimeType

public java.lang.String getMimeType()
Returns the mime-type for the uploaded file.

Returns:
The mime-type for the uploaded file.
Since:
1.2


OOP MimeParser Version 3.5

ALL CONTENTS COPYRIGHT 2005, OOP-Research Corporation. All rights reserved.
Any questions and comments are welcome to OOP-Research Corporation.