For instance, if you want to use the ftp XFileAccessor from Acme, Inc. and the NFS XFileAccessor from ABC Inc., then you can set the java.protocols.xfile system property as follows:
java.protocols.xfile=com.acme|com.abc |
When an ftp URL is used, the following package names will be constructed:
com.acme.ftp.XFileAccessor com.abc.ftp.XFileAccessor com.sun.ftp.XFileAccessor |
(The default com.sun prefix is automatically added to the end of the property list.)
The classLoader attempts to load each of the constructed package names in turn relative to the CLASSPATH until it is successful.
A subsequent reference to an NFS URL will result in the following list of candidate package names:
com.acme.nfs.XFileAccessor com.abc.nfs.XFileAccessor com.sun.nfs.XFileAccessor |
For the XFile interface documentation, refer to the XFile javadocs included with this release.