public interface ILocatorFactory
ILocator.| Modifier and Type | Method and Description |
|---|---|
ILocator |
createLocator(String location)
Create an
ILocator. |
ILocator createLocator(String location) throws IOException
ILocator.
If location is null or an empty string, null is returned.
location may for example define a file in the file system
and the factory returns the corresponding FileLocator.
The factory may return an ILocator to a resource that does not
(yet) exist, but is a valid ILocator. The factory itself does not
perform any check for physical existence on a syntactically valid
ILocator.
If there's no way that a location can be resolved to a valid
ILocator, the ILocatorFactory throws an
IOException. If the failure is related to non-existence, the
factory should throw a FileNotFoundException.location - A location definition.location.IOExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.