ua.gradsoft.termware
Class TermLoader
java.lang.Object
ua.gradsoft.termware.TermLoader
- Direct Known Subclasses:
- ClassPathTermLoader, FileOrClassTermLoader, FileSystemTermLoader
public abstract class TermLoader
- extends Object
Abstract class for loading of terms from extern al storage.
(such as file system or classpath or more)
- Author:
- Ruslan Shevchenko
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance_
protected TermWareInstance instance_
TermLoader
public TermLoader()
load
public Term load(String name,
IParserFactory parserFactory,
Term parserFactoryArgs)
throws TermWareException
- Throws:
TermWareException
getSource
public abstract InputStreamSource getSource(String name)
throws ResourceNotFoundException,
ExternalException
- locate source by absolute name.
- Throws:
ResourceNotFoundException
ExternalException
addSearchPath
public abstract void addSearchPath(String path)
throws ExternalException
- add search path
- Throws:
ExternalException
getSearchPathes
public abstract List<String> getSearchPathes()
throws ExternalException
- return read-only list of searh patches.
- Throws:
ExternalException