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
- Version:
- $Id: FileVFS.java 24415 2016-06-19 11:07:55Z kerik-sf $
- Author:
- Slava Pestov
- See Also:
-
Field Summary
FieldsFields inherited from class VFSFile
color, colorCalculated, DIRECTORY, FILE, FILESYSTEM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidFetch the attributes of the local file.getExtendedAttribute(String name) Returns the value of an extended attribute.getIcon(boolean expanded, boolean openBuffer) Returns the file system icon for the file.longlongreturn file modified date, this function simply return 0, VFS implementation should overwrite this to return the real modified databooleanbooleanvoidsetModified(long modified) Methods inherited from class VFSFile
fetchedAttrs, findCompletion, findCompletion, getColor, getDefaultIcon, getDefaultIcon, getDeletePath, getIcon, getName, getPath, getType, getVFS, isBinary, isHidden, setDeletePath, setHidden, setLength, setName, setPath, setReadable, setSymlinkPath, setType, setWriteable, toString
-
Field Details
-
DATE_FORMAT
-
-
Constructor Details
-
LocalFile
-
-
Method Details
-
getExtendedAttribute
Description copied from class:VFSFileReturns 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:
getExtendedAttributein classVFSFile- Parameters:
name- The extended attribute name
-
fetchAttrs
protected void fetchAttrs()Fetch the attributes of the local file.- Overrides:
fetchAttrsin classVFSFile
-
getIcon
-
getSymlinkPath
- Overrides:
getSymlinkPathin classVFSFile
-
getLength
-
isReadable
public boolean isReadable()- Overrides:
isReadablein classVFSFile
-
isWriteable
public boolean isWriteable()- Overrides:
isWriteablein classVFSFile
-
getModified
public long getModified()Description copied from class:VFSFilereturn file modified date, this function simply return 0, VFS implementation should overwrite this to return the real modified data- Overrides:
getModifiedin classVFSFile
-
setModified
public void setModified(long modified)
-