www.dextsolution.com
DEXTUPLOAD
NJ
menu toggleReference > devpia > dextuploadnj > MultipartFileItem

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

getFieldName

See the getFieldName method of the FieldItem interface.

getItemType

See the getItemType method of the FieldItem interface.

isEmpty

See the isEmpty method of the FileItem interface.

getFilename

See the getFilename method of the FileItem interface.

getFilenameWithoutExtension

See the getFilenameWithoutExtension method of the FileItem interface.

getContentType

See the getContentType method of the FileItem interface.

getTempFilePath

See the getTempFilePath method of the FileItem interface.

getTempFile

See the getTempFile method of the FileItem interface.

getFileSize

See the getFileSize method of the FileItem interface.

getOriginalFileSize

See the getOriginalFileSize method of the FileItem interface.

isEligibleFile

See the isEligibleFile method of the FileItem interface.

getExtension

See the getExtension method of the FileItem interface.

getLastSavedFilePath

See the getLastSavedFilePath method of the FileItem interface.

getLastRelativeSavedFilePath

See the getLastRelativeSavedFilePath method of the FileItem interface.

getLastSavedFilename

See the getLastSavedFilename method of the FileItem interface.

deleteTempFile

See the deleteTempFile method of the FileItem interface.

saveAs

See the saveAs method of the FileItem interface.

save

See the save method of the FileItem interface.

getFileCopyOption

See the getFileCopyOption method of the FileItem interface.

setFileCopyOption

See the setFileCopyOption method of the FileItem interface.

get

See the get method of the FileItem interface.

isCached

See the isCached method of the FileItem interface.

removeCache

See the removeCache method of the FileItem interface.