Class FileSystemInfoRec

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

    • Field Detail


        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.
        fsClazz - class to query for file system info.
        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.
        type string
      • getDescription

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

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