public static boolean isFileUri(String value) {
    try {
      return UriType.FILE == getURLType(createURI(value));
    } catch (URISyntaxException ex) {
      throw new RuntimeException(ex);
    }
  }
@param path
@return URI corresponding to the path.
ql/src/java/org/apache/hadoop/hive/ql/util/ResourceDownloader.java