Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }