Package net.bjmsw.hda.vs.model.mime
Class FormDataFile
java.lang.Object
net.bjmsw.hda.vs.model.mime.FormDataFile
Represents a file in form data.
This class is used to store files in form data. It contains the file data, name and MIME type.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFormDataFile(byte[] data, String name, String fileName, String mimeType) Represents a file in form data. -
Method Summary
-
Field Details
-
Constructor Details
-
FormDataFile
Represents a file in form data.This class is used to store files in form data. It contains the file data, name, file name, and MIME type.
- Parameters:
data- The file data.name- The name of the file.fileName- The name of the file.mimeType- The MIME type of the file.
-
-
Method Details
-
getData
public byte[] getData()Gets the file data.- Returns:
- The file data.
-
getMimeType
Gets the MIME type of the file.- Returns:
- The MIME type of the file.
-
getName
Gets the name of the file.- Returns:
- The name of the file.
-
getFileName
Gets the name of the file.- Returns:
- The name of the file.
-