Package org.gjt.sp.jedit.io
Class FileVFS.LocalFile
- java.lang.Object
-
- org.gjt.sp.jedit.io.VFSFile
-
- org.gjt.sp.jedit.io.FileVFS.LocalFile
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- FileVFS
public static class FileVFS.LocalFile extends VFSFile
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.text.DateFormatDATE_FORMAT-
Fields inherited from class org.gjt.sp.jedit.io.VFSFile
color, colorCalculated, DIRECTORY, FILE, FILESYSTEM
-
-
Constructor Summary
Constructors Constructor Description LocalFile(java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfetchAttrs()Fetch the attributes of the local file.java.lang.StringgetExtendedAttribute(java.lang.String name)Returns the value of an extended attribute.javax.swing.IcongetIcon(boolean expanded, boolean openBuffer)Returns the file system icon for the file.longgetLength()longgetModified()return file modified date, this function simply return 0, VFS implementation should overwrite this to return the real modified datajava.lang.StringgetSymlinkPath()booleanisReadable()booleanisWriteable()voidsetModified(long modified)-
Methods inherited from class org.gjt.sp.jedit.io.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
-
-
-
-
Method Detail
-
getExtendedAttribute
public java.lang.String getExtendedAttribute(java.lang.String name)
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
public javax.swing.Icon getIcon(boolean expanded, boolean openBuffer)Returns the file system icon for the file.
-
getSymlinkPath
public java.lang.String getSymlinkPath()
- Overrides:
getSymlinkPathin classVFSFile
-
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)
-
-