org.scijava.io
Class URLLocation

java.lang.Object
  extended by org.scijava.io.AbstractLocation
      extended by org.scijava.io.URLLocation
All Implemented Interfaces:
Location

public class URLLocation
extends AbstractLocation

Location backed by a URL.

Author:
Curtis Rueden

Constructor Summary
URLLocation(URL url)
           
 
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
 

Constructor Detail

URLLocation

public URLLocation(URL url)
Method Detail

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.