Package org.wicketstuff.html5.fileapi
Class Html5File
java.lang.Object
org.wicketstuff.html5.fileapi.Html5File
- All Implemented Interfaces:
Serializable,IClusterable
Represents the File type from the Html5 FileApi. This is a simplified version so the Blob
supertype is not a separate class.
- Author:
- akiraly
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Html5File
Constructor.- Parameters:
name- name of the file without path, not-nullsize- size of the file in bytes, non-negativetype- mime type of the file, not-null, can be an empty string if not knownlastModifiedDate- last modified date pf the file, can be null
-
-
Method Details
-
getName
Defined in FileApi File type.- Returns:
- name of the file without path, not-null
-
getSize
public long getSize()Defined in FileApi Blob type.- Returns:
- size of the file in bytes, non-negative
-
getType
Defined in FileApi Blob type.- Returns:
- mime type of the file, not-null, can be an empty string if not known
-
getLastModifiedDate
Defined in FileApi File type.- Returns:
- date, when the file was last modified, can be null
-