eu.esdihumboldt.util.io
Class PathUpdate
java.lang.Object
eu.esdihumboldt.util.io.PathUpdate
public class PathUpdate
- extends Object
Updater class for a path.
- Author:
- Patrick Lieb, Kai Schwierczek
Constructor Summary |
PathUpdate(URI oldLocation,
URI newLocation)
Create a path updater based on a pair of known old and new locations |
Method Summary |
URI |
changePath(URI oldSource)
Create an alternative path for the given location if the corresponding
file has been moved along to the project file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathUpdate
public PathUpdate(URI oldLocation,
URI newLocation)
- Create a path updater based on a pair of known old and new locations
- Parameters:
oldLocation
- the old location of a filenewLocation
- the new location of the same file (though the file
name may be different)
changePath
public URI changePath(URI oldSource)
- Create an alternative path for the given location if the corresponding
file has been moved along to the project file.
- Parameters:
oldSource
- path where the file was saved to
- Returns:
- the new URI
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d