Virtual File Systems
Prev | Chapter 2. API Changes | Next

## Virtual File Systems

Instead of calling `VFSManager.registerVFS()` in your plugin's `start()` method, add entries in the `services.xml` file that look like so:

    <SERVICE CLASS="org.gjt.sp.jedit.io.VFS" NAME="ftp">
        new ftp.FtpVFS(false);
    </SERVICE>

A new VFS.DirectoryEntryCompare class was added, for sorting lists of VFS directory entries.

Fields named `canRead` and `canWrite` were added to the VFS.DirectoryEntry class.

There is a new extended attribute API to go with the details view in the file system browser. Pass an array of extended attribute names to the VFS constructor, then provide an implementation of the `getExtendedAttribute()` method in your subclass of VFS.DirectoryEntry.

The following two methods in the VFSManager class have been deprecated since they can no longer be implemented for file systems using the deferred loading API

- `getVFSByName()` - use `getVFSForProtocol()` instead.

- `getFilesystems()` - use `getVFSs()`, which returns a string array, instead.

Prev | Up | Next
Services | Home | Text Area Extensions