Java URI to File Name getFileName(URI uri)

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

Description

get File Name

License

Open Source License

Declaration

public static String getFileName(URI uri) 

Method Source Code

//package com.java2s;

import java.net.URI;

public class Main {
    public static String getFileName(URI uri) {
        String path[] = uri.toString().split("/");
        return path[path.length - 1];
    }/*  ww w .j a v  a2 s.  co m*/
}

Related

  1. getFileFromURIList(URI[] uris, String fileName)
  2. getFilename(final URI uri)
  3. getFilename(final URI uri)
  4. getFileName(URI path)
  5. getFileName(URI uri)
  6. getFileName(URI uri)
  7. getFileName(URI uri)
  8. getFileNameFromURI(final URI resourceAddress, final boolean usePathStyleUris)
  9. getFilenameFromURI(URI uri, boolean preserveExtension)