Class Html5File

java.lang.Object
org.wicketstuff.html5.fileapi.Html5File
All Implemented Interfaces:
Serializable, IClusterable

public class Html5File extends Object implements 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 Details

    • Html5File

      public Html5File(String name, long size, String type, Calendar lastModifiedDate)
      Constructor.
      Parameters:
      name - name of the file without path, not-null
      size - size of the file in bytes, non-negative
      type - mime type of the file, not-null, can be an empty string if not known
      lastModifiedDate - last modified date pf the file, can be null
  • Method Details

    • getName

      public String 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

      public String getType()
      Defined in FileApi Blob type.
      Returns:
      mime type of the file, not-null, can be an empty string if not known
    • getLastModifiedDate

      public Calendar getLastModifiedDate()
      Defined in FileApi File type.
      Returns:
      date, when the file was last modified, can be null