public final class LocalLocationFactory extends Object implements LocationFactory
LocationFactory for creating local file Location.| Constructor and Description |
|---|
LocalLocationFactory()
Constructs a LocalLocationFactory that Location created will be relative to system root.
|
LocalLocationFactory(File basePath) |
| Modifier and Type | Method and Description |
|---|---|
Location |
create(String path)
Creates an instance of
Location of the given path. |
Location |
create(URI uri)
|
Location |
getHomeLocation()
Returns the home location.
|
public LocalLocationFactory()
public LocalLocationFactory(File basePath)
public Location create(String path)
LocationFactoryLocation of the given path.create in interface LocationFactorypath - The path representing the location.Location.public Location create(URI uri)
LocationFactorycreate in interface LocationFactoryuri - to the resource on the filesystem.Locationpublic Location getHomeLocation()
LocationFactorygetHomeLocation in interface LocationFactoryCopyright © 2013-2016 The Apache Software Foundation. All rights reserved.