Interface GFileSystemFactoryFull<FSTYPE extends GFileSystem>
-
- Type Parameters:
FSTYPE
-
- All Superinterfaces:
GFileSystemFactory<FSTYPE>
- All Known Implementing Classes:
GFileSystemBaseFactory
public interface GFileSystemFactoryFull<FSTYPE extends GFileSystem> extends GFileSystemFactory<FSTYPE>
AGFileSystemFactory
interface for filesystem implementations that need all available references to the source file, including aByteProvider
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FSTYPE
create(FSRL containerFSRL, FSRLRoot targetFSRL, ByteProvider byteProvider, java.io.File containerFile, FileSystemService fsService, TaskMonitor monitor)
Constructs a newGFileSystem
instance that handles the specified file.
-
-
-
Method Detail
-
create
FSTYPE create(FSRL containerFSRL, FSRLRoot targetFSRL, ByteProvider byteProvider, java.io.File containerFile, FileSystemService fsService, TaskMonitor monitor) throws java.io.IOException, CancelledException
Constructs a newGFileSystem
instance that handles the specified file.- Parameters:
containerFSRL
- theFSRL
of the file being opened.targetFSRL
- theFSRLRoot
of the filesystem being created.byteProvider
- aByteProvider
containing the contents of the file being probed. This method is responsible for closing this byte provider instance.containerFile
- theFile
(probably in the filecache with non-useful filename) being opened.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:
- a new
GFileSystem
derived instance. - Throws:
java.io.IOException
- if there is an error reading files.CancelledException
- if the user cancels
-
-