code: public static void parseGenericFileUri(String uri, FileIdentifier identifier) {
          if(uri.startsWith("file://"))
              identifier.onLocalFile();
          else if(uri.startsWith("http://"))
              identifier.onHttpFile();
          else if(uri.startsWith("android.resource://"))
              identifier.onAsset();
      }
docs: In order to determine the correct file parser, you can provide the URI and this method
  will find the appropriate parser to use
  @param uri The Uri of the file you are parsing
  @param identifier This interface can be generated in order to handle different actions
  based on the source of the file