public static String stripFileProtocol(String uriString){
  if (uriString.startsWith("file://")) {
    uriString=uriString.substring(7);
  }
  return uriString;
}

public static String stripFileProtocol ( String uriString ) { if ( uriString . startsWith ( "file://" ) ) { uriString = uriString . substring ( 7 ) ; } return uriString ; }
removes the " file : / / " prefix from the given uri string , if applicable . if the given uri string doesn ' t have a " file : / / " prefix , it is returned unchanged .
