Class FileSystemInfoRec
java.lang.Object
ghidra.formats.gfilesystem.factory.FileSystemInfoRec
Holds information read from a
FileSystemInfo annotation.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<FileSystemInfoRec> A staticComparatorthat will orderFileSystemInfoRecby theirpriority, with the highest priority elements sorted to the beginning of the list. -
Method Summary
Modifier and TypeMethodDescriptionstatic FileSystemInfoRecfromClass(Class<? extends GFileSystem> fsClazz) Instantiate a newFileSystemInfoRecfrom the information found in theFileSystemInfoannotation attached to the specified Class.Filesystem description, ie.TheGFileSystemFactoryinstance that will create new filesystem instances when needed.Class<? extends GFileSystem> TheClassof the filesystem implementation.intFilesystem relative priority.getType()Filesystem 'type', ie.
-
Field Details
-
BY_PRIORITY
A staticComparatorthat will orderFileSystemInfoRecby theirpriority, with the highest priority elements sorted to the beginning of the list.
-
-
Method Details
-
fromClass
Instantiate a newFileSystemInfoRecfrom the information found in theFileSystemInfoannotation 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
TheClassof the filesystem implementation.- Returns:
GFileSystemderived class.
-
getFactory
TheGFileSystemFactoryinstance that will create new filesystem instances when needed.- Returns:
GFileSystemFactoryfor this filesystem
-