|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 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(Object session,
String path,
Component comp)
Backs up the specified file. |
String |
_canonPath(Object session,
String path,
Component comp)
Returns the canonical form if the specified path name. |
InputStream |
_createInputStream(Object session,
String path,
boolean ignoreErrors,
Component comp)
Creates an input stream. |
OutputStream |
_createOutputStream(Object session,
String path,
Component comp)
Creates an output stream. |
boolean |
_delete(Object session,
String path,
Component comp)
Deletes the specified URL. |
VFS.DirectoryEntry |
_getDirectoryEntry(Object session,
String path,
Component comp)
Returns the specified directory entry. |
VFS.DirectoryEntry[] |
_listDirectory(Object session,
String path,
Component comp)
Lists the specified directory. |
boolean |
_mkdir(Object session,
String directory,
Component comp)
Creates a new directory with the specified URL. |
boolean |
_rename(Object session,
String from,
String to,
Component comp)
Renames the specified URL. |
void |
_saveComplete(Object session,
Buffer buffer,
String path,
Component comp)
Called after a file has been saved. |
String |
constructPath(String parent,
String path)
Constructs a path from the specified directory and file name component. |
char |
getFileSeparator()
Returns the file separator used by this VFS. |
String |
getParentOfPath(String path)
Returns the parent of the specified path. |
static int |
getPermissions(String path)
Returns numeric permissions of a file. |
boolean |
insert(View view,
Buffer buffer,
String path)
Inserts a file into the specified buffer. |
boolean |
save(View view,
Buffer buffer,
String path)
Saves the specifies buffer. |
static void |
setPermissions(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 String PERMISSIONS_PROPERTY
| Constructor Detail |
public FileVFS()
| Method Detail |
public String getParentOfPath(String path)
VFS
getParentOfPath in class VFSpath - The path
public String constructPath(String parent,
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 VFSparent - The parent directorypath - The pathpublic char getFileSeparator()
VFS
getFileSeparator in class VFS
public boolean save(View view,
Buffer buffer,
String path)
VFS
save in class VFSview - The viewbuffer - The bufferpath - The path
public boolean insert(View view,
Buffer buffer,
String path)
VFS
insert in class VFSview - The viewbuffer - The bufferpath - The path
public String _canonPath(Object session,
String path,
Component comp)
throws IOException
~ might be expanded to the user's home directory.
_canonPath in class VFSsession - The sessionpath - The pathcomp - The component that will parent error dialog boxes
IOException - if an I/O error occurred
public VFS.DirectoryEntry[] _listDirectory(Object session,
String path,
Component comp)
VFS
_listDirectory in class VFSsession - 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
public VFS.DirectoryEntry _getDirectoryEntry(Object session,
String path,
Component comp)
VFS
_getDirectoryEntry in class VFSsession - The sessionpath - The pathcomp - The component that will parent error dialog boxes
public boolean _delete(Object session,
String path,
Component comp)
VFS
_delete in class VFSsession - The VFS sessionpath - The pathcomp - The component that will parent error dialog boxes
public boolean _rename(Object session,
String from,
String to,
Component comp)
VFS
_rename in class VFSsession - The VFS sessionfrom - The old pathto - The new pathcomp - The component that will parent error dialog boxes
public boolean _mkdir(Object session,
String directory,
Component comp)
VFS
_mkdir in class VFSsession - The VFS sessiondirectory - The directorycomp - The component that will parent error dialog boxes
public void _backup(Object session,
String path,
Component comp)
throws IOException
VFS
_backup in class VFSsession - The VFS sessionpath - The pathcomp - The component that will parent error dialog boxes
IOException - if an I/O error occurs
public InputStream _createInputStream(Object session,
String path,
boolean ignoreErrors,
Component comp)
throws IOException
VFS
_createInputStream in class VFSsession - the VFS sessionpath - The pathignoreErrors - If true, file not found errors should be
ignoredcomp - The component that will parent error dialog boxes
IOException - If an I/O error occurs
public OutputStream _createOutputStream(Object session,
String path,
Component comp)
throws IOException
VFS
_createOutputStream in class VFSsession - the VFS sessionpath - The pathcomp - The component that will parent error dialog boxes
IOException - If an I/O error occurs
public void _saveComplete(Object session,
Buffer buffer,
String path,
Component comp)
VFS
_saveComplete in class VFSsession - 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(String path)
public static void setPermissions(String path,
int permissions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||