Module jEdit

Class FileVFS.LocalFile

java.lang.Object
org.gjt.sp.jedit.io.VFSFile
org.gjt.sp.jedit.io.FileVFS.LocalFile
All Implemented Interfaces:
Serializable
Enclosing class:
FileVFS

public static class FileVFS.LocalFile extends VFSFile
See Also:
  • Field Details

    • DATE_FORMAT

      public static final DateFormat DATE_FORMAT
  • Constructor Details

    • LocalFile

      public LocalFile(File file)
  • Method Details

    • getExtendedAttribute

      public String getExtendedAttribute(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 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
    • getSymlinkPath

      public String getSymlinkPath()
      Overrides:
      getSymlinkPath in class VFSFile
    • getLength

      public long getLength()
      Overrides:
      getLength in class VFSFile
    • isReadable

      public boolean isReadable()
      Overrides:
      isReadable in class VFSFile
    • isWriteable

      public boolean isWriteable()
      Overrides:
      isWriteable in class VFSFile
    • 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)