Interface ISerializableFile
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultSerializableFile
Represents a serializable reference to a single file. Includes metadata about the file, i.e. it file name, content
type and size; and a reference to obtaining an input stream of the file's content.
- Since:
- 8.2.0
-
Method Details
-
contentType
String contentType()Gets the content type (mime type) of the file.- Returns:
- The content type of the file.
-
data
Gets the binary data of the file. Must not be null and contain at least one byte.- Returns:
- The binary data of the file.
-
fileName
-
fileSize
long fileSize()Gets the size of the file in bytes.- Returns:
- The size of the file in bytes.
-