Class StrutsUploadedFile
java.lang.Object
org.apache.struts2.dispatcher.multipart.StrutsUploadedFile
- All Implemented Interfaces:
Serializable
,UploadedFile
- See Also:
-
Method Details
-
length
- Specified by:
length
in interfaceUploadedFile
- Returns:
- size of the content of file/stream/array
-
getName
- Specified by:
getName
in interfaceUploadedFile
- Returns:
- a local name of the file
-
isFile
public boolean isFile()- Specified by:
isFile
in interfaceUploadedFile
- Returns:
- indicates if this is a real file or maybe just in-memory stream
-
delete
public boolean delete()- Specified by:
delete
in interfaceUploadedFile
- Returns:
- removes a local copy of the uploaded file/stream
-
getAbsolutePath
- Specified by:
getAbsolutePath
in interfaceUploadedFile
- Returns:
- an absolute path of the file if possible
-
getContent
- Specified by:
getContent
in interfaceUploadedFile
- Returns:
- content of the upload file
-
getContentType
- Specified by:
getContentType
in interfaceUploadedFile
- Returns:
- content type of the uploaded file
-
getOriginalName
- Specified by:
getOriginalName
in interfaceUploadedFile
- Returns:
- original file name from upload source
-
getInputName
Description copied from interface:UploadedFile
Represents a name of the input file, eg.: "myFile" in case of- Specified by:
getInputName
in interfaceUploadedFile
- Returns:
- name of the input file field
-
toString
-