Java URI Create getURIName(URI uri)

Here you can find the source of getURIName(URI uri)

Description

get URI Name

License

Open Source License

Declaration

public static String getURIName(URI uri) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2009-2013 CWI//from  w  w w  .j av a  2 s. co m
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   * Davy Landman  - Davy.Landman@cwi.nl
*******************************************************************************/

import java.io.File;
import java.net.URI;

public class Main {
    public static String getURIName(URI uri) {
        File file = new File(uri.getPath());
        return file.getName();
    }
}

Related

  1. getURIFilename(final String s)
  2. getURIFromEncodedString(String unencoded)
  3. getURIFromPath(String fileOrURI)
  4. getURIFromPath(String path)
  5. getURIName(String forwardSlashPath)
  6. getURIParameterValue(URI uri, String name, String defVal)
  7. getURIs(final Object[] objs)
  8. getUriScheme(String address)
  9. getURIsPrettyPrint(final Collection uris)