|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gjt.sp.jedit.io.VFS org.gjt.sp.jedit.io.FileVFS
Local filesystem VFS.
Nested Class Summary | |
static class |
FileVFS.LocalDirectoryEntry
|
Nested classes inherited from class org.gjt.sp.jedit.io.VFS |
VFS.DirectoryEntry, VFS.DirectoryEntryCompare |
Field Summary | |
static java.lang.String |
PERMISSIONS_PROPERTY
|
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, LOW_LATENCY_CAP, MKDIR_CAP, READ_CAP, RENAME_CAP, WRITE_CAP |
Constructor Summary | |
FileVFS()
|
Method Summary | |
void |
_backup(java.lang.Object session,
java.lang.String path,
java.awt.Component comp)
Backs up the specified file. |
java.lang.String |
_canonPath(java.lang.Object session,
java.lang.String path,
java.awt.Component comp)
Returns the canonical form if the specified path name. |
java.io.InputStream |
_createInputStream(java.lang.Object session,
java.lang.String path,
boolean ignoreErrors,
java.awt.Component comp)
Creates an input stream. |
java.io.OutputStream |
_createOutputStream(java.lang.Object session,
java.lang.String path,
java.awt.Component comp)
Creates an output stream. |
boolean |
_delete(java.lang.Object session,
java.lang.String path,
java.awt.Component comp)
Deletes the specified URL. |
VFS.DirectoryEntry |
_getDirectoryEntry(java.lang.Object session,
java.lang.String path,
java.awt.Component comp)
Returns the specified directory entry. |
VFS.DirectoryEntry[] |
_listDirectory(java.lang.Object session,
java.lang.String path,
java.awt.Component comp)
Lists the specified directory. |
boolean |
_mkdir(java.lang.Object session,
java.lang.String directory,
java.awt.Component comp)
Creates a new directory with the specified URL. |
boolean |
_rename(java.lang.Object session,
java.lang.String from,
java.lang.String to,
java.awt.Component comp)
Renames the specified URL. |
void |
_saveComplete(java.lang.Object session,
Buffer buffer,
java.lang.String path,
java.awt.Component comp)
Called after a file has been saved. |
java.lang.String |
constructPath(java.lang.String parent,
java.lang.String path)
Constructs a path from the specified directory and file name component. |
char |
getFileSeparator()
Returns the file separator used by this VFS. |
java.lang.String |
getParentOfPath(java.lang.String path)
Returns the parent of the specified path. |
static int |
getPermissions(java.lang.String path)
Returns numeric permissions of a file. |
boolean |
insert(View view,
Buffer buffer,
java.lang.String path)
Inserts a file into the specified buffer. |
boolean |
save(View view,
Buffer buffer,
java.lang.String path)
Saves the specifies buffer. |
static void |
setPermissions(java.lang.String path,
int permissions)
Sets numeric permissions of a file. |
Methods inherited from class org.gjt.sp.jedit.io.VFS |
_endVFSSession, _listDirectory, createVFSSession, getCapabilities, getDefaultColorFor, getExtendedAttributes, getFileName, getName, getTwoStageSaveName, load, reloadDirectory, showBrowseDialog |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PERMISSIONS_PROPERTY
Constructor Detail |
public FileVFS()
Method Detail |
public java.lang.String getParentOfPath(java.lang.String path)
VFS
getParentOfPath
in class VFS
path
- The pathpublic java.lang.String constructPath(java.lang.String parent, java.lang.String path)
VFS
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.
constructPath
in class VFS
parent
- The parent directorypath
- The pathpublic char getFileSeparator()
VFS
getFileSeparator
in class VFS
public boolean save(View view, Buffer buffer, java.lang.String path)
VFS
save
in class VFS
view
- The viewbuffer
- The bufferpath
- The pathpublic boolean insert(View view, Buffer buffer, java.lang.String path)
VFS
insert
in class VFS
view
- The viewbuffer
- The bufferpath
- The pathpublic java.lang.String _canonPath(java.lang.Object session, java.lang.String path, java.awt.Component comp) throws java.io.IOException
~
might be expanded to the user's home directory.
_canonPath
in class VFS
session
- The sessionpath
- The pathcomp
- The component that will parent error dialog boxes
java.io.IOException
- if an I/O error occurredpublic VFS.DirectoryEntry[] _listDirectory(java.lang.Object session, java.lang.String path, java.awt.Component comp)
VFS
_listDirectory
in class VFS
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 boxespublic VFS.DirectoryEntry _getDirectoryEntry(java.lang.Object session, java.lang.String path, java.awt.Component comp)
VFS
_getDirectoryEntry
in class VFS
session
- The sessionpath
- The pathcomp
- The component that will parent error dialog boxes
public boolean _delete(java.lang.Object session, java.lang.String path, java.awt.Component comp)
VFS
_delete
in class VFS
session
- The VFS sessionpath
- The pathcomp
- The component that will parent error dialog boxespublic boolean _rename(java.lang.Object session, java.lang.String from, java.lang.String to, java.awt.Component comp)
VFS
_rename
in class VFS
session
- The VFS sessionfrom
- The old pathto
- The new pathcomp
- The component that will parent error dialog boxespublic boolean _mkdir(java.lang.Object session, java.lang.String directory, java.awt.Component comp)
VFS
_mkdir
in class VFS
session
- The VFS sessiondirectory
- The directorycomp
- The component that will parent error dialog boxespublic void _backup(java.lang.Object session, java.lang.String path, java.awt.Component comp) throws java.io.IOException
VFS
_backup
in class VFS
session
- The VFS sessionpath
- The pathcomp
- The component that will parent error dialog boxes
java.io.IOException
- if an I/O error occurspublic java.io.InputStream _createInputStream(java.lang.Object session, java.lang.String path, boolean ignoreErrors, java.awt.Component comp) throws java.io.IOException
VFS
_createInputStream
in class VFS
session
- the VFS sessionpath
- The pathignoreErrors
- If true, file not found errors should be
ignoredcomp
- The component that will parent error dialog boxes
java.io.IOException
- If an I/O error occurspublic java.io.OutputStream _createOutputStream(java.lang.Object session, java.lang.String path, java.awt.Component comp) throws java.io.IOException
VFS
_createOutputStream
in class VFS
session
- the VFS sessionpath
- The pathcomp
- The component that will parent error dialog boxes
java.io.IOException
- If an I/O error occurspublic void _saveComplete(java.lang.Object session, Buffer buffer, java.lang.String path, java.awt.Component comp)
VFS
_saveComplete
in class VFS
session
- The VFS sessionbuffer
- The bufferpath
- The path the buffer was saved to (can be different from
Buffer.getPath()
if the user invoked the
Save a Copy As command, for example).comp
- The component that will parent error dialog boxespublic static int getPermissions(java.lang.String path)
public static void setPermissions(java.lang.String path, int permissions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |