Interface GFileSystemProbeByteProvider NEW
-
- All Superinterfaces:
GFileSystemProbe
- All Known Implementing Classes:
GFileSystemBaseFactory
public interface GFileSystemProbeByteProvider extends GFileSystemProbe
AGFileSystemProbeinterface for filesystems that need to examine aByteProvider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Change Modifier and Type Method Description booleanprobe(ByteProvider byteProvider, FileSystemService fsService, TaskMonitor monitor)Probes the specifiedByteProviderto determine if this filesystem implementation can handle the file.
-
-
-
Method Detail
-
probe
boolean probe(ByteProvider byteProvider, FileSystemService fsService, TaskMonitor monitor) throws java.io.IOException, CancelledException
Probes the specifiedByteProviderto determine if this filesystem implementation can handle the file.- Parameters:
byteProvider- aByteProvidercontaining the contents of the file being probed. Implementors of this method should NOTclose()this object.fsService- a reference to theFileSystemServiceobjectmonitor- aTaskMonitorthat should be polled to see if the user has requested to cancel the operation, and updated with progress information.- Returns:
trueif the specified file is handled by this filesystem implementation,falseif not.- Throws:
java.io.IOException- if there is an error reading files.CancelledException- if the user cancels
-
-