Interface GFileSystemProbeWithFile
-
- All Superinterfaces:
GFileSystemProbe
public interface GFileSystemProbeWithFile extends GFileSystemProbe
AGFileSystemProbe
interface for filesystems that only need aFile
reference to the source file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
probe(FSRL containerFSRL, java.io.File containerFile, FileSystemService fsService, TaskMonitor monitor)
Probes the specifiedcontainerFile
to determine if this filesystem implementation can handle the file.
-
-
-
Method Detail
-
probe
boolean probe(FSRL containerFSRL, java.io.File containerFile, FileSystemService fsService, TaskMonitor monitor) throws java.io.IOException, CancelledException
Probes the specifiedcontainerFile
to determine if this filesystem implementation can handle the file.- Parameters:
containerFSRL
- theFSRL
of the file being probedcontainerFile
- theFile
(probably in the filecache with non-useful filename) being probed.fsService
- a reference to theFileSystemService
objectmonitor
- aTaskMonitor
that should be polled to see if the user has requested to cancel the operation, and updated with progress information.- Returns:
true
if the specified file is handled by this filesystem implementation,false
if not.- Throws:
java.io.IOException
- if there is an error reading files.CancelledException
- if the user cancels
-
-