Get Scheme Specific Part from a URI in Java
Description
The following code shows how to get Scheme Specific Part from a URI.
Example
import java.net.URI;
/* w w w . j ava 2s . co m*/
public class Main {
public static void main(String args[]) throws Exception {
URI u = new URI("http://www.java2s.com");
System.out.println("The scheme specific part is " + u.getSchemeSpecificPart());
}
}
The code above generates the following result.