private static URL clearUserInfo ( String systemID ) { try { URL url = new URL ( systemID ) ; // Do not clear user info on "file" urls 'cause on Windows the drive will // have no ":"... if ( ! "file" . equals ( url . getProtocol ( ) ) ) { return attachUserInfo ( url , null , null ) ; } return url ; } catch ( MalformedURLException e ) { return null ; } }
Clears the user info from an url .