devpia.dextuploadnj
Class MultipartFileItem
- Minimum version supported
- 1.0.0
- Minimum support environment
- JRE 1.6
- Description
-
The MultipartFileItem class is a class that implements the FileItem interface, and indicates a file field among mulitpart data.
FileUpload dextnj = new FileUpload(request, env); dextnj.prepare(); ... // Returns the number of the MultipartFileItem objects. int formCount = dextnj.getFileItemCount(); // Returns the iterator of the field name pointing to the MultipartFileItem object. Iterator<String> iterator = dextnj.getFileItemNames(); // Returns the 0th MultipartFileItem object. FileItem item = dextnj.getFileItem(0); // Returns the first MultipartFileItem object with field name is "name". FileItem item = dextnj.getFileItem("name"); // Returns all FilMultipartFileItem objects with the name is "attachements". List<FileItem> orders = dextnj.getFileItems("attachements"); // Returns all MultipartFileItem objects. List<FileItem> orders = dextnj.getFileItems(); - Constructor
-
MultipartFormItem
-
Create an object of the MultipartFileItem class.
-
Signatures
public MultipartFormItem(Environment environment, MultipartItem item)
-
- Methods
-
See the getFieldName method of the FieldItem interface.
See the getItemType method of the FieldItem interface.
See the isEmpty method of the FileItem interface.
See the getFilename method of the FileItem interface.
See the getFilenameWithoutExtension method of the FileItem interface.
See the getContentType method of the FileItem interface.
See the getTempFilePath method of the FileItem interface.
See the getTempFile method of the FileItem interface.
See the getFileSize method of the FileItem interface.
See the getOriginalFileSize method of the FileItem interface.
See the isEligibleFile method of the FileItem interface.
See the getExtension method of the FileItem interface.
See the getLastSavedFilePath method of the FileItem interface.
See the getLastRelativeSavedFilePath method of the FileItem interface.
See the getLastSavedFilename method of the FileItem interface.
See the deleteTempFile method of the FileItem interface.
See the saveAs method of the FileItem interface.
See the save method of the FileItem interface.
See the getFileCopyOption method of the FileItem interface.
See the setFileCopyOption method of the FileItem interface.
See the get method of the FileItem interface.
See the isCached method of the FileItem interface.
See the removeCache method of the FileItem interface.