code: public static boolean isAbsolutePath(String uri) {
          boolean absolute = false;
          if (uri != null) {
              if (uri.indexOf(":/") != -1) {
                  absolute = true;
              } else if (uri.indexOf(":\\") != -1) {
                  absolute = true;
              }
          }
  
          return absolute;
      }
docs: Checks to see if URI is absolute or relative.
  
  @param uri
  @return true it is absolute or false if not