| java.lang.Object org.gjt.sp.jedit.io.VFSFile
VFSFile | public class VFSFile implements Serializable(Code) | | A directory entry returned from a file listing.
since: jEdit 4.3pre2 |
Method Summary | |
protected void | fetchAttrs() Fetch some attributes of the file. | protected boolean | fetchedAttrs() Returns true if the attributes are already fetched. | public static int | findCompletion(VFSFile[] files, int start, int end, String str, boolean dirsOnly) Return the index of a file whose name matches the given string,
in a case-insensitive manner. | public static String | findCompletion(String path, String complete, VFSBrowser browser, boolean dirsOnly) | public Color | getColor() Returns the color that will be used to display the file. | final public Icon | getDefaultIcon(boolean expanded, boolean openBuffer) Returns the default icon for the file. | final public Icon | getDefaultIcon(boolean expanded) Returns the default icon of the file. | public String | getDeletePath() | public String | getExtendedAttribute(String name) Returns the value of an extended attribute. | final public Icon | getIcon(boolean expanded) Returns the icon for the file. | public Icon | getIcon(boolean expanded, boolean openBuffer) Returns the icon for the file. | public long | getLength() | public String | getName() | public String | getPath() | public String | getSymlinkPath() | public int | getType() | public VFS | getVFS() | public boolean | isBinary(Object session) Check if a file is binary file. | public boolean | isHidden() | public boolean | isReadable() | public boolean | isWriteable() | public void | setDeletePath(String deletePath) | public void | setHidden(boolean hidden) | public void | setLength(long length) | public void | setName(String name) | public void | setPath(String path) | public void | setReadable(boolean canRead) | public void | setSymlinkPath(String symlinkPath) | public void | setType(int type) | public void | setWriteable(boolean canWrite) | public String | toString() |
DIRECTORY | final public static int DIRECTORY(Code) | | |
FILE | final public static int FILE(Code) | | |
FILESYSTEM | final public static int FILESYSTEM(Code) | | |
canRead | public boolean canRead(Code) | | |
canWrite | public boolean canWrite(Code) | | |
colorCalculated | protected boolean colorCalculated(Code) | | |
hidden | public boolean hidden(Code) | | |
length | public long length(Code) | | |
VFSFile | public VFSFile()(Code) | | since: jEdit 4.3pre2 |
fetchAttrs | protected void fetchAttrs()(Code) | | Fetch some attributes of the file.
Some attributes are not fetched during
file initialization because it takes time.
They are fetched here.
VFS implementation should overwrite this
|
fetchedAttrs | protected boolean fetchedAttrs()(Code) | | Returns true if the attributes are already fetched.
See Also: VFSFile.fetchAttrs() true if the attributes are already fetched |
findCompletion | public static int findCompletion(VFSFile[] files, int start, int end, String str, boolean dirsOnly)(Code) | | Return the index of a file whose name matches the given string,
in a case-insensitive manner. Exact matches are preferred.
Parameters: files - The list of files Parameters: start - The start index, inclusive Parameters: end - The end index, exclusive Parameters: str - The string to match Parameters: dirsOnly - Only match directories? since: jEdit 4.3pre3 |
getColor | public Color getColor()(Code) | | Returns the color that will be used to display the file.
the color of the file |
getDefaultIcon | final public Icon getDefaultIcon(boolean expanded, boolean openBuffer)(Code) | | Returns the default icon for the file.
since: jEdit 4.3pre9 |
getDefaultIcon | final public Icon getDefaultIcon(boolean expanded)(Code) | | Returns the default icon of the file.
the default icon of the file since: jEdit 4.3pre9 |
getExtendedAttribute | public String getExtendedAttribute(String name)(Code) | | 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.
Parameters: name - The extended attribute name since: jEdit 4.2pre1 |
getIcon | final public Icon getIcon(boolean expanded)(Code) | | Returns the icon for the file.
since: jEdit 4.3pre9 |
getIcon | public Icon getIcon(boolean expanded, boolean openBuffer)(Code) | | Returns the icon for the file.
Implementations of File system browsers can override this method
since: jEdit 4.3pre9 |
getLength | public long getLength()(Code) | | |
getType | public int getType()(Code) | | |
getVFS | public VFS getVFS()(Code) | | The originating virtual file system of this file. |
isBinary | public boolean isBinary(Object session) throws IOException(Code) | | Check if a file is binary file.
Parameters: session - the VFS session true if the file was detected as binary throws: IOException - IOException If an I/O error occurs since: jEdit 4.3pre5 |
isHidden | public boolean isHidden()(Code) | | |
isReadable | public boolean isReadable()(Code) | | |
isWriteable | public boolean isWriteable()(Code) | | |
setDeletePath | public void setDeletePath(String deletePath)(Code) | | |
setHidden | public void setHidden(boolean hidden)(Code) | | |
setLength | public void setLength(long length)(Code) | | |
setReadable | public void setReadable(boolean canRead)(Code) | | |
setSymlinkPath | public void setSymlinkPath(String symlinkPath)(Code) | | |
setType | public void setType(int type)(Code) | | |
setWriteable | public void setWriteable(boolean canWrite)(Code) | | |
|
|