org.scijava.io
Class FileLocation
java.lang.Object
org.scijava.io.AbstractLocation
org.scijava.io.FileLocation
- All Implemented Interfaces:
- Location
public class FileLocation
- extends AbstractLocation
Location
backed by a File
on disk.
- Author:
- Curtis Rueden
Method Summary |
File |
getFile()
Gets the associated File . |
URI |
getURI()
Gets the location expressed as a URI , or null if the location
cannot be expressed as such. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileLocation
public FileLocation(File file)
FileLocation
public FileLocation(String path)
getFile
public File getFile()
- Gets the associated
File
.
getURI
public URI getURI()
- Description copied from interface:
Location
- Gets the location expressed as a
URI
, or null if the location
cannot be expressed as such.
- Specified by:
getURI
in interface Location
- Overrides:
getURI
in class AbstractLocation
Copyright © 2009–2015 SciJava. All rights reserved.