Package writer2latex.base
Class BatchConverterBase
java.lang.Object
writer2latex.base.BatchConverterBase
- All Implemented Interfaces:
BatchConverter
- Direct Known Subclasses:
BatchConverterImpl
Abstract base implementation of
writer2latex.api.BatchConverter
.
The base implementation handles the traversal of directories and files, and
leaves the handling of indexpages to the subclass.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
convert
(File source, File target, boolean bRecurse, BatchHandler handler) Convert a directory using the givenConverter
(if none is given, all files will be ignored).protected abstract String
void
setConverter
(Converter converter) Define aConverter
implementation to use for conversion of the individual documents.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface writer2latex.api.BatchConverter
createIndexFile, getConfig, readTemplate, readTemplate
-
Constructor Details
-
BatchConverterBase
public BatchConverterBase()
-
-
Method Details
-
setConverter
Description copied from interface:BatchConverter
Define aConverter
implementation to use for conversion of the individual documents. If no converter is given, theconvert
method cannot convert documents (but can still create index pages).- Specified by:
setConverter
in interfaceBatchConverter
- Parameters:
converter
- theConverter
to use
-
convert
Description copied from interface:BatchConverter
Convert a directory using the givenConverter
(if none is given, all files will be ignored). This method fails silently if you haven't set a converter.- Specified by:
convert
in interfaceBatchConverter
- Parameters:
source
- aFile
representing the directory to converttarget
- aFile
representing the directory to contain the converted documentsbRecurse
- determines wether or not to recurse into subdirectorieshandler
- a BatchHandler
-
getIndexFileName
-