예제 #1
0
 /**
  * Get the registered {@link org.broad.igv.dev.api.LoadHandler} for this path/typeString, or null
  * if one not found
  *
  * @param typeString
  * @return
  * @api
  */
 private LoadHandler getTrackLoaderHandler(String typeString) {
   String lower = typeString.toLowerCase();
   for (Map.Entry<String, LoadHandler> entry : handlers.entrySet()) {
     if (lower.endsWith(entry.getKey().toLowerCase())) {
       return entry.getValue();
     }
   }
   return null;
 }
예제 #2
0
 /**
  * Register a custom handler for the given extension. Note that this does NOT override built-in
  * IGV behavior
  *
  * @param extension
  * @param loader
  * @api
  */
 public static void registerHandler(String extension, LoadHandler loader) {
   handlers.put(extension, loader);
 }