Class FileData
java.lang.Object
de.xima.fc.common.file.FileData
- All Implemented Interfaces:
IFileData, Serializable
-
Method Details
-
content
-
contentType
Description copied from interface:IFileDataRequired. The MIME type of the file.- Specified by:
contentTypein interfaceIFileData- Returns:
- The MIME type of the file.
-
fileName
-
ofBinaryContent
Creates a new POJO for a file with binary content.- Parameters:
content- The binary content of the file. null is treated as an empty array.fileName- The name of the file.contentType- The MIME type of the file.- Returns:
- A new POJO for the data of a file.
-
ofFile
Creates a new POJO for file data.- Parameters:
file- The file. null is treated as an empty file.fileName- The name of the file.mimeType- The MIME type of the file.- Returns:
- A new POJO for data of a file.
- Throws:
IOException- When the data of the given file could not be read.
-