public class SourceLoader extends Object
| Constructor and Description |
|---|
SourceLoader(String formatSpecifier,
String helpSetPattern,
Class<? extends IResourceIterator> iteratorClass)
Create a source loader.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFormatSpecifier() |
String |
getHelpSetPattern() |
Class<? extends IResourceIterator> |
getIteratorClass()
Returns the class that will be used to iterate over the contents of a source archive.
|
boolean |
isHelpSetFile(String fileName)
Returns true if the file name matches the pattern specified for the main help set file.
|
IResourceIterator |
load(String archiveName)
Returns a resource iterator instance for the given archive name.
|
void |
registerTransforms(HelpProcessor processor)
Register all file transforms with the main processor.
|
public SourceLoader(String formatSpecifier, String helpSetPattern, Class<? extends IResourceIterator> iteratorClass)
formatSpecifier - The unique help format specifier (e.g., "javahelp").helpSetPattern - The pattern that will be used to identify the main help set file.iteratorClass - The class that will be used to iterate over files in the source archive.public void registerTransforms(HelpProcessor processor)
processor - The main help processor.public Class<? extends IResourceIterator> getIteratorClass()
public String getHelpSetPattern()
public String getFormatSpecifier()
public boolean isHelpSetFile(String fileName)
fileName - File name to check.public IResourceIterator load(String archiveName) throws Exception
archiveName - Name of the archive file.Exception - Unspecified exception.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.