intarsys PDF library API

de.intarsys.tools.locator
Class FileLocatorFactory

java.lang.Object
  extended by de.intarsys.tools.locator.FileLocatorFactory
All Implemented Interfaces:
ILocatorFactory

public class FileLocatorFactory
extends Object
implements ILocatorFactory

The factory for FileLocator objects.

FileLocator instances are created either using an absolute path name or are looked up relative to the factorys search path. Multiple search paths may be defined.


Field Summary
static String PATH_SEPARATOR
          The separator character for the definition of multiple search paths
 
Constructor Summary
FileLocatorFactory()
          Create a new factory.
 
Method Summary
 ILocator createLocator(String path)
          The file locator factory supports looking up resources in multiple paths.
 String getSearchPathDefinition()
           
 List getSearchPaths()
           
 boolean isSynchSynchronous()
           
 void setSearchPathDefinition(String searchPath)
           
 void setSearchPaths(List searchPaths)
           
 void setSynchSynchronous(boolean synchSynchronous)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_SEPARATOR

public static final String PATH_SEPARATOR
The separator character for the definition of multiple search paths

See Also:
Constant Field Values
Constructor Detail

FileLocatorFactory

public FileLocatorFactory()
Create a new factory.

Method Detail

setSearchPathDefinition

public void setSearchPathDefinition(String searchPath)

getSearchPathDefinition

public String getSearchPathDefinition()

setSearchPaths

public void setSearchPaths(List searchPaths)

getSearchPaths

public List getSearchPaths()

setSynchSynchronous

public void setSynchSynchronous(boolean synchSynchronous)

isSynchSynchronous

public boolean isSynchSynchronous()

createLocator

public ILocator createLocator(String path)
The file locator factory supports looking up resources in multiple paths. To preserve compatibility to ILocatorFactory, the last locator created is returned if no match is found. This is a valid locator, even so no existing physical resource is designated.

Specified by:
createLocator in interface ILocatorFactory
Parameters:
path - The fully qualified location definition.
Returns:
The ILocator object created from the location.
See Also:
ILocatorFactory.createLocator(java.lang.String)

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.