Class FileVFS.LocalFile

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    FileVFS

    public static class FileVFS.LocalFile
    extends VFSFile
    See Also:
    Serialized Form
    • Field Detail

      • DATE_FORMAT

        public static final java.text.DateFormat DATE_FORMAT
    • Constructor Detail

      • LocalFile

        public LocalFile​(java.io.File file)
    • Method Detail

      • getExtendedAttribute

        public java.lang.String getExtendedAttribute​(java.lang.String name)
        Description copied from class: VFSFile
        Returns the value of an extended attribute. Note that this returns formatted strings (eg, "10 Mb" for a file size of 1048576 bytes). If you need access to the raw data, access fields and methods of this class.
        Overrides:
        getExtendedAttribute in class VFSFile
        Parameters:
        name - The extended attribute name
      • fetchAttrs

        protected void fetchAttrs()
        Fetch the attributes of the local file.
        Overrides:
        fetchAttrs in class VFSFile
      • getIcon

        public javax.swing.Icon getIcon​(boolean expanded,
                                        boolean openBuffer)
        Returns the file system icon for the file.
        Overrides:
        getIcon in class VFSFile
        Parameters:
        expanded - not used here
        openBuffer - not used here
        Returns:
        the file system icon
        Since:
        4.3pre9
      • getModified

        public long getModified()
        Description copied from class: VFSFile
        return file modified date, this function simply return 0, VFS implementation should overwrite this to return the real modified data
        Overrides:
        getModified in class VFSFile
      • setModified

        public void setModified​(long modified)