Class FileSystemInfoRec
java.lang.Object
ghidra.formats.gfilesystem.factory.FileSystemInfoRec
Holds information read from a
FileSystemInfo
annotation.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Comparator
<FileSystemInfoRec> A staticComparator
that will orderFileSystemInfoRec
by theirpriority
, with the highest priority elements sorted to the beginning of the list. -
Method Summary
Modifier and TypeMethodDescriptionstatic FileSystemInfoRec
fromClass
(Class<? extends GFileSystem> fsClazz) Instantiate a newFileSystemInfoRec
from the information found in theFileSystemInfo
annotation attached to the specified Class.Filesystem description, ie.TheGFileSystemFactory
instance that will create new filesystem instances when needed.Class
<? extends GFileSystem> TheClass
of the filesystem implementation.int
Filesystem relative priority.getType()
Filesystem 'type', ie.
-
Field Details
-
BY_PRIORITY
A staticComparator
that will orderFileSystemInfoRec
by theirpriority
, with the highest priority elements sorted to the beginning of the list.
-
-
Method Details
-
fromClass
Instantiate a newFileSystemInfoRec
from the information found in theFileSystemInfo
annotation attached to the specified Class.- Parameters:
fsClazz
- class to query for file system info.- Returns:
- new
FileSystemInfoRec
, or null if the class doesn't have valid file system meta data.
-
getType
Filesystem 'type', ie. "file", or "zip", etc.- Returns:
- type string
-
getDescription
Filesystem description, ie. "XYZ Vendor Filesystem Type 1"- Returns:
- description string
-
getPriority
public int getPriority()Filesystem relative priority.- Returns:
- priority int
-
getFSClass
TheClass
of the filesystem implementation.- Returns:
GFileSystem
derived class.
-
getFactory
TheGFileSystemFactory
instance that will create new filesystem instances when needed.- Returns:
GFileSystemFactory
for this filesystem
-