java.lang.Object
org.gjt.sp.jedit.io.VFS
de.grogra.ext.jedit.VFSAdapter
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.gjt.sp.jedit.io.VFS
VFS.DirectoryEntryCompare -
Field Summary
Fields 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 TypeMethodDescription_createInputStream(Object session, String path, boolean ignoreErrors, Component comp) Creates an input stream._createOutputStream(Object session, String path, Component comp) Creates an output stream.booleanDeletes the specified URL.Returns the specified directory entry.VFSFile[]_listFiles(Object session, String path, Component comp) Lists the specified directory.booleanCreates a new directory with the specified URL.constructPath(String parent, String path) Constructs a path from the specified directory and file name component.static VFSAdaptergetDefaultEncoding(String path) charReturns the file separator used by this VFS.getParentOfPath(String path) Returns the parent of the specified path.voidsetEncoding(String path, String encoding) Methods inherited from class org.gjt.sp.jedit.io.VFS
_backup, _canonPath, _endVFSSession, _finishTwoStageSave, _listDirectory, _listDirectory, _listDirectory, _rename, _saveComplete, copy, copy, copy, copy, createVFSSession, createVFSSessionSafe, getCapabilities, getDefaultColorFor, getExtendedAttributes, getFileName, getFilePath, getName, getTwoStageSaveName, insert, isMarkersFileSupported, load, reloadDirectory, save
-
Constructor Details
-
VFSAdapter
-
-
Method Details
-
forAllProjects
-
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
-
constructPath
Description copied from class:VFSConstructs a path from the specified directory and file name component. This must be overridden to return a non-null value, otherwise browsing this filesystem will not work.Unless you are writing a VFS, this method should not be called directly. To ensure correct behavior, you must call
MiscUtilities.constructPath(String,String)instead.- Overrides:
constructPathin classVFS- Parameters:
parent- The parent directorypath- The path
-
getFileSeparator
public char getFileSeparator()Description copied from class:VFSReturns the file separator used by this VFS.- Overrides:
getFileSeparatorin classVFS
-
_listFiles
Description copied from class:VFSLists the specified directory.- Overrides:
_listFilesin classVFS- Parameters:
session- The sessionpath- 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.
-
_delete
Description copied from class:VFSDeletes the specified URL. -
_mkdir
Description copied from class:VFSCreates a new directory with the specified URL. -
_createInputStream
public InputStream _createInputStream(Object session, String path, boolean ignoreErrors, Component comp) throws IOException Description copied from class:VFSCreates an input stream. This method is called from the I/O thread.- Overrides:
_createInputStreamin classVFS- Parameters:
session- the VFS sessionpath- The pathignoreErrors- If true, file not found errors should be ignoredcomp- The component that will parent error dialog boxes- Returns:
- an inputstream or
nullif there was a problem - Throws:
IOException- If an I/O error occurs
-
_createOutputStream
public OutputStream _createOutputStream(Object session, String path, Component comp) throws IOException Description copied from class:VFSCreates an output stream. This method is called from the I/O thread.- Overrides:
_createOutputStreamin classVFS- Parameters:
session- the VFS sessionpath- The pathcomp- The component that will parent error dialog boxes- Throws:
IOException- If an I/O error occurs
-
getDefaultEncoding
- Overrides:
getDefaultEncodingin classVFS
-
setEncoding
- Overrides:
setEncodingin classVFS
-