parquet-cli/src/main/java/org/apache/parquet/cli/BaseCommand.java
public URI qualifiedURI(String filename) throws IOException {
    URI fileURI = URI.create(filename);
    if (RESOURCE_URI_SCHEME.equals(fileURI.getScheme())) {
      return fileURI;
    } else {
      return qualifiedPath(filename).toUri();
    }
  }
public URI qualifiedURI(String filename) throws IOException {
    URI fileURI = URI.create(filename);
    if (RESOURCE_URI_SCHEME.equals(fileURI.getScheme())) {
      return fileURI;
    } else {
      return qualifiedPath(filename).toUri();
    }
  }
public URI qualifiedURI ( String filename ) throws IOException { URI fileURI = URI . create ( filename ) ; if ( RESOURCE_URI_SCHEME . equals ( fileURI . getScheme ( ) ) ) { return fileURI ; } else { return qualifiedPath ( filename ) . toUri ( ) ; } }
Returns a {@link URI} for the {@code filename} that is a qualified Path or
a resource URI.

If the file does not have a file system scheme, this uses the default FS.

@param filename The filename to qualify
@return A qualified URI for the filename
@throws IOException if there is an error creating a qualified URI
Returns a { @link URI } for the { @code filename } that is a qualified Path or a resource URI .