org.scijava.io
Class FileLocation

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

public class FileLocation
extends AbstractLocation

Location backed by a File on disk.

Author:
Curtis Rueden

Constructor Summary
FileLocation(File file)
           
FileLocation(String path)
           
 
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
 

Constructor Detail

FileLocation

public FileLocation(File file)

FileLocation

public FileLocation(String path)
Method Detail

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.