Class GFileSystemBaseFactory

    • Constructor Detail

      • GFileSystemBaseFactory

        public GFileSystemBaseFactory()
    • Method Detail

      • setFileSystemClass

        public void setFileSystemClass​(java.lang.Class<? extends GFileSystemBase> fsClass)
      • probe

        public boolean probe​(FSRL containerFSRL,
                             ByteProvider byteProvider,
                             FileSystemService fsService,
                             TaskMonitor monitor)
        Description copied from interface: GFileSystemProbeFull
        Probes the specified containerFile to determine if this filesystem implementation can handle the file.
        Specified by:
        probe in interface GFileSystemProbeFull
        containerFSRL - the FSRL of the file being probed
        byteProvider - a ByteProvider containing the contents of the file being probed. Implementors of this method should NOT close() this object.
        containerFile - the File (probably in the filecache with non-useful filename) being probed.
        fsService - a reference to the FileSystemService object
        monitor - a TaskMonitor that should be polled to see if the user has requested to cancel the operation, and updated with progress information.
        true if the specified file is handled by this filesystem implementation, false if not.
        Throws: - if there is an error reading files.
        CancelledException - if the user cancels