public abstract class BatchConverterBase extends java.lang.Object implements BatchConverter
writer2latex.api.BatchConverter.
The base implementation handles the traversal of directories and files, and
leaves the handling of indexpages to the subclass.| Constructor and Description |
|---|
BatchConverterBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
convert(java.io.File source,
java.io.File target,
boolean bRecurse,
BatchHandler handler)
Convert a directory using the given
Converter (if none is given,
all files will be ignored). |
protected abstract java.lang.String |
getIndexFileName() |
void |
setConverter(Converter converter)
Define a
Converter implementation to use for
conversion of the individual documents. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateIndexFile, getConfig, readTemplate, readTemplatepublic void setConverter(Converter converter)
BatchConverterConverter implementation to use for
conversion of the individual documents.
If no converter is given, the convert method cannot
convert documents (but can still create index pages).setConverter in interface BatchConverterconverter - the Converter to usepublic void convert(java.io.File source,
java.io.File target,
boolean bRecurse,
BatchHandler handler)
BatchConverterConverter (if none is given,
all files will be ignored).
This method fails silently if you haven't set a converter.convert in interface BatchConvertersource - a File representing the directory to converttarget - a File representing the directory to contain
the converted documentsbRecurse - determines wether or not to recurse into subdirectorieshandler - a BatchHandlerprotected abstract java.lang.String getIndexFileName()