Java URI to Relative URI resolveFileName(URI uri)

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

Description

resolve File Name

License

Apache License

Declaration

public static String resolveFileName(URI uri) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.net.URI;

public class Main {
    public static String resolveFileName(URI uri) {
        String url = uri.toString();
        return url.substring(url.lastIndexOf('/') + 1, url.length());

    }/*from  w ww  .  j  av  a 2  s. c  om*/
}

Related

  1. resolve(String path, URI... relativeTo)
  2. resolve(URI base, URI child)
  3. resolve(URI baseURI, String reference)
  4. resolveAbsoluteURI(final URI relativeURI)
  5. resolveFile(final URI relativeURI)
  6. resolveFileNameNoExt(URI uri)
  7. resolveFileUri(String fullPageURI, File rootPath)
  8. resolvePartUri(URI sourcePartUri, URI targetUri)
  9. resolvePath(URI root, String subPath)