Package com.sun.xfile

Class XFileExtensionAccessor

  • Direct Known Subclasses:
    XFileExtensionAccessor

    public abstract class XFileExtensionAccessor
    extends java.lang.Object
    This is an abstract class to intended to be extended with filesystem-specific methods.

    An XFileExtensionAccessor class must be associated with an XFileAccessor. An XFileExtensionAccessor can be used to provide access to filesystem-specific methods that are not defined within the XFileAccessor interface. A subclass of XFileExtensionAccessor must be declared as:

    
         import com.sun.xfile.*;
         

    public class XFileExtensionAccessor extends com.sun.xfile.XFileExtensionAccessor { :

    An XFileExtensionAccessor class is loaded when the XFile.getExtensionAccessor() method is invoked. The class loading process is identical to that of an XFileAccessor except for the final component of the package name: "XFileExtensionAccessor" instead of "XFileAccessor".

    An application that needs to use the methods within the XFileExtensionAccessor must cast the result of XFile.getExtensionAccessor.

    
        import com.sun.xfile.*;
        

    XFile xf = new XFile("ftp://server/path"); com.acme.ftp.XFileExtensionAccessor xftp = (com.acme.ftp.XFileExtensionAccessor) xf.getExtensionAccessor(); xftp.login(); :

    Author:
    Brent Callaghan
    See Also:
    XFile.getExtensionAccessor(), XFileAccessor
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XFileExtensionAccessor

        public XFileExtensionAccessor​(XFile xf)