Interface GFileSystemProbeByteProvider
- All Superinterfaces:
GFileSystemProbe
- All Known Implementing Classes:
GFileSystemBaseFactory
A
GFileSystemProbe
interface for filesystems that need to examine
a ByteProvider
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
probe
(ByteProvider byteProvider, FileSystemService fsService, TaskMonitor monitor) Probes the specifiedByteProvider
to determine if this filesystem implementation can handle the file.
-
Method Details
-
probe
boolean probe(ByteProvider byteProvider, FileSystemService fsService, TaskMonitor monitor) throws IOException, CancelledException Probes the specifiedByteProvider
to determine if this filesystem implementation can handle the file.- Parameters:
byteProvider
- aByteProvider
containing the contents of the file being probed. Implementors of this method should NOTclose()
this object.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:
IOException
- if there is an error reading files.CancelledException
- if the user cancels
-