public URLConnection openConnection() throws IOException {
  return streamHandler.openConnection(this);
}

public URLConnection openConnection ( ) throws IOException { return streamHandler . openConnection ( this ) ; }
returns a new connection to the resource referred to by this url .
