addFileSystem(FileSystem fs) Adds new filesystem to the pool.
Note that a filesystem cannot be assigned to more than one file
system pool at one time (though currently there is only one pool anyway).
At any given time, no two filesystems in the pool may share the same
FileSystem.getSystemName name (unless all but one are
FileSystem.isValid invalid ).
Creates new instance of filesystem pool and
registers it as the default one. Also registers the default filesystem.
Parameters: def - the default filesystem
Adds new filesystem to the pool.
Note that a filesystem cannot be assigned to more than one file
system pool at one time (though currently there is only one pool anyway).
At any given time, no two filesystems in the pool may share the same
FileSystem.getSystemName name (unless all but one are
FileSystem.isValid invalid ). To be sure, that
filesystem was really added in Repository, then test that FileSystem
is valid.
Parameters: fs - filesystem to add
Finds file when its name is provided. It scans in the list of
filesystems and asks them for the specified file by a call to
FileSystem.find find . The first object that is found is returned or null
if none of the filesystems contain such a file.
Parameters: aPackage - package name where each package is separated by a dot Parameters: name - name of the file (without dots) or null ifone wants to obtain the name of a package and not a file in it Parameters: ext - extension of the file or null if one needsa package and not a file name FileObject that represents file with given name ornull if the file does not exist
Finds all files among all filesystems matching a given name, returning all matches.
All filesystems are queried with
FileSystem.find .
Parameters: aPackage - package name where each package is separated by a dot Parameters: name - name of the file (without dots) or null ifone wants to obtain the name of a package and not a file in it Parameters: ext - extension of the file or null if one needsa package and not a file name enumeration of FileObjects
Finds filesystem when only its system name is known.
Parameters: systemName - FileSystem.getSystemName name of the filesystem the filesystem or null if there is no suchfilesystem
Searches for the given resource among all filesystems.
See Also:FileSystem.findResource Parameters: name - a name of the resource file object or null if the resource can not be found
Access method to get default instance of repository in the system.
The instance is either taken as a result of
org.openide.util.Lookup.getDefault ().lookup (Repository.class)
or (if the lookup query returns null) a default instance is created.
default repository for the system
Reads object from stream.
Reads all filesystems. Persistent and system filesystems are untouched; all others are removed and possibly reread.
Parameters: ois - object input stream exception: IOException - if an error occures exception: ClassNotFoundException - if read class is not found
Reorders
FileSystem s by given permutation.
For example, if there are three filesystems, new int[] {2, 0, 1} cycles the filesystems forwards.
Parameters: perm - an array of integers throws: IllegalArgumentException - if the array is not a permutation, or is not the same length as the current number of filesystems in the pool
Saves pool to stream by saving all filesystems.
The default (system) filesystem, or any persistent filesystems, are skipped.
Parameters: oos - object output stream exception: IOException - if an error occures