Java URI to tokenizeBase(URI uri)

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

Description

tokenize Base

License

Open Source License

Declaration

private static StringTokenizer tokenizeBase(URI uri) 

Method Source Code

//package com.java2s;

import java.net.URI;
import java.util.StringTokenizer;

public class Main {
    private static StringTokenizer tokenizeBase(URI uri) {
        String scheme = uri.getSchemeSpecificPart();
        int index = scheme.lastIndexOf("/");
        if (index != -1) {
            scheme = scheme.substring(0, index + 1);
        }//from w  w  w . j  a v a2  s . c o  m
        return new StringTokenizer(scheme, "/");
    }
}

Related

  1. toFile(String unixPathOrUri)
  2. toFile(URI uri)
  3. toFile(URI uri)
  4. toFileURI(File file)
  5. toFileURI(String path)
  6. toName(URI uri)
  7. toNdnUri(String channelName)
  8. toPackageTokens(String uri)
  9. toRelativeURI(URI uri)