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