org.scijava.io
Class URLLocation
java.lang.Object
org.scijava.io.AbstractLocation
org.scijava.io.URLLocation
- All Implemented Interfaces:
- Location
public class URLLocation
- extends AbstractLocation
Location
backed by a URL
.
- Author:
- Curtis Rueden
Method Summary |
URI |
getURI()
Gets the associated URI , or null if this URL is not formatted
strictly according to to RFC2396 and cannot be converted to a URI. |
URL |
getURL()
Gets the associated URL . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLLocation
public URLLocation(URL url)
getURL
public URL getURL()
- Gets the associated
URL
.
getURI
public URI getURI()
- Gets the associated
URI
, or null if this URL is not formatted
strictly according to to RFC2396 and cannot be converted to a URI.
- Specified by:
getURI
in interface Location
- Overrides:
getURI
in class AbstractLocation
Copyright © 2009–2015 SciJava. All rights reserved.