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.DateFormat
DATE_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 void
fetchAttrs()
Fetch the attributes of the local file.java.lang.String
getExtendedAttribute(java.lang.String name)
Returns the value of an extended attribute.javax.swing.Icon
getIcon(boolean expanded, boolean openBuffer)
Returns the file system icon for the file.long
getLength()
long
getModified()
return file modified date, this function simply return 0, VFS implementation should overwrite this to return the real modified datajava.lang.String
getSymlinkPath()
boolean
isReadable()
boolean
isWriteable()
void
setModified(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: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 classVFSFile
- Parameters:
name
- The extended attribute name
-
fetchAttrs
protected void fetchAttrs()
Fetch the attributes of the local file.- Overrides:
fetchAttrs
in 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:
getSymlinkPath
in classVFSFile
-
isReadable
public boolean isReadable()
- Overrides:
isReadable
in classVFSFile
-
isWriteable
public boolean isWriteable()
- Overrides:
isWriteable
in classVFSFile
-
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 classVFSFile
-
setModified
public void setModified(long modified)
-
-