/** * Compares two URLs, excluding the fragment component. * * <p>Returns <code>true</code> if this <code>URL</code> and the <code>other</code> argument are * equal without taking the fragment component into consideration. * * @param other the <code>URL</code> to compare against. * @return <code>true</code> if they reference the same remote object; <code>false</code> * otherwise. */ public boolean sameFile(URL other) { return handler.sameFile(this, other); }
/** * Tests whether or not another URL refers to the same "file" as this one. This will be true if * and only if the passed object is not null, is a URL, and matches all fields but the ref (ie, * protocol, host, port, and file); * * @param url The URL object to test with * @return true if URL matches this URL's file, false otherwise */ public boolean sameFile(URL url) { return ph.sameFile(this, url); }