devpia.dextuploadnj
Class MultipartCollection
- Minimum version supported
- 1.0.0
- Minimum support environment
- JRE 1.6
- Description
-
A collection of classes that contains all field objects of multipart data.
- Constructor
-
MultipartCollection
-
Create an object of the MutlpartCollection class.
-
Signatures
public MultipartCollection()
-
- Methods
-
clear
-
Delete all registered field objects.
-
Signatures
public void clear()
-
How to use
collection.clear();
deleteTempFiles
Delete all temporary files.
-
Signatures
public void deleteTempFiles()
-
How to use
collection.deleteTempFiles();
addItem
-
Add a FieldItem object. If you set to null, a DEXTUploadException occurs.
-
Signatures
public void addItem(FieldItem item)
-
Parameters
Name Type Description item devpia.dextuploadnj.FieldItem FieldItem is the top level interface for handling each field indicating the elements of the multipart data. -
How to use
collection.addItem(new MultipartFormItem(item));
getFormItemCount
Returns the number of String fields.
-
Signatures
public int getFormItemCount()
-
Returns
The number of String fields
-
How to use
int formListCount = collection.getFormItemCount();
getFileItemCount
Returns the number of file fields.
-
Signatures
public int getFileItemCount()
-
Returns
The number of file fields
-
How to use
int fileItemCount = collection.getFileItemCount();
getFormGroupNames
Returns the name set(java.util.Set<String>) object of String fields.
-
Signatures
public Set<String> getFormGroupNames()
-
Returns
The name set of String fields
-
How to use
Set<String> names = collection.getFormGroupNames();
getFileGroupNames
Returns the name set(java.util.Set<String>) object of file fields.
-
Signatures
public Set<String> getFileGroupNames()
-
Returns
The name set of file fields
-
How to use
Set<String> names = collection.getFileGroupNames();
getFormItem
-
Returns a FormItemobject corresponding to the specified order or name . It returns the first item if there are multiple forms of the same name.
-
Signatures
public FormItem getFormItem(int index) public FormItem getFormItem(String name)
-
Parameters
Name Type Description index int Sequence value name java.lang.String Name -
Returns
A FormItem object
-
How to use
FormItem item = collection.getFormItem(index); // or FormItem item = collection.getFormItem(name);
getFormItems
Returns a list of fields(java.util.ArrayList <FormItem>) corresponding to all or the specified name.
-
Signatures
public ArrayList<FormItem> getFormItems() public ArrayList<FormItem> getFormItems(String name)
-
Parameters
Name Type Description name java.lang.String Name -
Returns
A list(java.util.ArrayList<FormItem>)
-
How to use
ArrayList<FormItem> items = collection.getFormItems(); // or ArrayList<FormItem> items = collection.getFormItems(name);
getFileItem
Returns a FileItem object corresponding to the specified order or name.
-
Signatures
public FileItem getFileItem(int index) public FileItem getFileItem(String name)
-
Parameters
Name Type Description index int Sequence value name java.lang.String Name -
Returns
A FileItem object
-
How to use
FileItem item = collection.getFileItem(index); // or FileItem item = collection.getFileItem(name);
getFileItems
Returns a list of files(java.util.ArrayList<FileItem>) corresponding to all or the specified name.
-
Signatures
public ArrayList<FileItem> getFileItems() public ArrayList<FileItem> getFileItems(String name)
-
Parameters
Name Type Description name java.lang.String Name -
Returns
A list(java.util.ArrayList<FileItem>)
-
How to use
ArrayList<FileItem> items = collection.getFileItems(); // or ArrayList<FileItem> items = collection.getFileItems(name);
-