Class WorkspaceFile

  • All Implemented Interfaces:
    java.io.Serializable

    public class WorkspaceFile
    extends WorkspaceItem
    The representation of a file in the user's workspace.
    Since:
    2.1
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkspaceFile​(java.lang.String path, java.util.Date lastModifiedDate, long size)
      It is not intended or recommended that the consumer of this API construct these objects.
    • Constructor Detail

      • WorkspaceFile

        public WorkspaceFile​(java.lang.String path,
                             java.util.Date lastModifiedDate,
                             long size)
        It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the workspace files returned by the API.
        Parameters:
        path - the path of the file in the workspace.
        lastModifiedDate - the date on which the file was last modified.
        size - the size of the file.
    • Method Detail

      • getSize

        public long getSize()
        Gets the size of the workspace file in bytes.
        Returns:
        The size of the workspace file in bytes.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class WorkspaceItem