Java URI to Path getPathSegments(URI uri)

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

Description

get Path Segments

License

Apache License

Declaration

public static String[] getPathSegments(URI uri) 

Method Source Code


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

import java.net.URI;

public class Main {
    public static String[] getPathSegments(URI uri) {
        return uri.getPath().split("/");
    }/*from   w ww .ja v a 2 s . c o m*/
}

Related

  1. getPathAndQueryURI(URI requestUri)
  2. getPathAsArray(URI uri)
  3. getPathByTrimmingEndingFileSeparator(URI uri)
  4. getPathComponents(URI uri)
  5. getPathParamValue(URI uri)