Class FileSystemInfoRec


  • public class FileSystemInfoRec
    extends java.lang.Object
    Holds information read from a FileSystemInfo annotation.

    • Field Detail

      • BY_PRIORITY

        public static final java.util.Comparator<FileSystemInfoRec> BY_PRIORITY
        A static Comparator that will order FileSystemInfoRec by their priority, with the highest priority elements sorted to the beginning of the list.
    • Method Detail

      • fromClass

        public static FileSystemInfoRec fromClass​(java.lang.Class<? extends GFileSystem> fsClazz)
        Instantiate a new FileSystemInfoRec from the information found in the FileSystemInfo 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

        public java.lang.String getType()
        Filesystem 'type', ie. "file", or "zip", etc.
        Returns:
        type string
      • getDescription

        public java.lang.String getDescription()
        Filesystem description, ie. "XYZ Vendor Filesystem Type 1"
        Returns:
        description string
      • getFSClass

        public java.lang.Class<? extends GFileSystem> getFSClass()
        The Class of the filesystem implementation.
        Returns:
        GFileSystem derived class.