Class LocalDirectorySearchLocation

  • All Implemented Interfaces:
    SearchLocation

    public class LocalDirectorySearchLocation
    extends java.lang.Object
    implements SearchLocation
    A SearchLocation that recursively searches for dwarf external debug files under a configured directory.
    • Constructor Detail

      • LocalDirectorySearchLocation

        public LocalDirectorySearchLocation​(java.io.File searchDir)
        Creates a new LocalDirectorySearchLocation at the specified location.
        Parameters:
        searchDir - path to the root directory of where to search
    • Method Detail

      • isLocalDirSearchLoc

        public static boolean isLocalDirSearchLoc​(java.lang.String locString)
        Returns true if the specified location string specifies a LocalDirectorySearchLocation.
        Parameters:
        locString - string to test
        Returns:
        boolean true if locString specifies a local dir search location
      • getName

        public java.lang.String getName()
        Description copied from interface: SearchLocation
        Returns the name of this instance, which should be a serialized copy of this instance.
        Specified by:
        getName in interface SearchLocation
        Returns:
        String serialized data of this instance, typically in "something://serialized_data" form
      • getDescriptiveName

        public java.lang.String getDescriptiveName()
        Description copied from interface: SearchLocation
        Returns a human formatted string describing this location, used in UI prompts or lists.
        Specified by:
        getDescriptiveName in interface SearchLocation
        Returns:
        formatted string
      • calcCRC

        public static int calcCRC​(java.io.File f)
                           throws java.io.IOException
        Calculates the crc32 for the specified file.
        Parameters:
        f - File to read
        Returns:
        int crc32
        Throws:
        java.io.IOException - if error reading file