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)
LocationFactory
Location
of the given path.create
in interface LocationFactory
path
- The path representing the location.Location
.public Location create(URI uri)
LocationFactory
create
in interface LocationFactory
uri
- to the resource on the filesystem.Location
public Location getHomeLocation()
LocationFactory
getHomeLocation
in interface LocationFactory
Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.