java.lang.Object
org.gjt.sp.jedit.io.VFS
org.gjt.sp.jedit.io.FileRootsVFS
A VFS that lists local root filesystems.
- Version:
- $Id: FileRootsVFS.java 25330 2020-05-09 14:21:52Z kpouer $
- Author:
- Slava Pestov
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gjt.sp.jedit.io.VFS
VFS.DirectoryEntryCompare -
Field Summary
FieldsFields inherited from class org.gjt.sp.jedit.io.VFS
BROWSE_CAP, CASE_INSENSITIVE_CAP, DELETE_CAP, EA_MODIFIED, EA_SIZE, EA_STATUS, EA_TYPE, IOBUFSIZE, LOW_LATENCY_CAP, MKDIR_CAP, NON_AWT_SESSION_CAP, READ_CAP, RENAME_CAP, WRITE_CAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the specified directory entry.VFSFile[]_listFiles(Object session, String url, Component comp) Lists the specified directory.getParentOfPath(String path) Returns the parent of the specified path.Methods inherited from class org.gjt.sp.jedit.io.VFS
_backup, _canonPath, _createInputStream, _createOutputStream, _delete, _endVFSSession, _finishTwoStageSave, _listDirectory, _listDirectory, _listDirectory, _mkdir, _rename, _saveComplete, constructPath, copy, copy, copy, copy, createVFSSession, createVFSSessionSafe, getCapabilities, getDefaultColorFor, getDefaultEncoding, getExtendedAttributes, getFileName, getFilePath, getFileSeparator, getName, getTwoStageSaveName, insert, isMarkersFileSupported, load, reloadDirectory, save, setEncoding
-
Field Details
-
PROTOCOL
- See Also:
-
-
Constructor Details
-
FileRootsVFS
public FileRootsVFS()
-
-
Method Details
-
getParentOfPath
Description copied from class:VFSReturns the parent of the specified path. This must be overridden to return a non-null value for browsing of this filesystem to work.- Overrides:
getParentOfPathin classVFS- Parameters:
path- The path
-
_listFiles
Description copied from class:VFSLists the specified directory.- Overrides:
_listFilesin classVFS- Parameters:
session- The sessionurl- The directory. Note that this must be a full URL, including the host name, path name, and so on. The username and password (if needed by the VFS) is obtained from the session instance.comp- The component that will parent error dialog boxes
-
_getFile
Description copied from class:VFSReturns the specified directory entry.- Overrides:
_getFilein classVFS- Parameters:
session- The session get it withVFS.createVFSSession(String, Component)path- The pathcomp- The component that will parent error dialog boxes- Returns:
- The specified directory entry, or null if it doesn't exist.
-