Here you can find the source of shortenURI(String uri)
public static String shortenURI(String uri)
//package com.java2s; //License from project: Apache License public class Main { /**// w ww . j a v a 2 s.c o m * * @return the local part of the full URI */ public static String shortenURI(String uri) { if (uri.startsWith("http")) { uri = uri.substring(uri.indexOf('#') + 1); } return uri; } }