Package writer2latex.base
Class BatchConverterBase
- java.lang.Object
-
- writer2latex.base.BatchConverterBase
-
- All Implemented Interfaces:
BatchConverter
- Direct Known Subclasses:
BatchConverterImpl
public abstract class BatchConverterBase extends java.lang.Object implements BatchConverter
Abstract base implementation ofwriter2latex.api.BatchConverter. The base implementation handles the traversal of directories and files, and leaves the handling of indexpages to the subclass.
-
-
Constructor Summary
Constructors Constructor Description BatchConverterBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidconvert(java.io.File source, java.io.File target, boolean bRecurse, BatchHandler handler)Convert a directory using the givenConverter(if none is given, all files will be ignored).protected abstract java.lang.StringgetIndexFileName()voidsetConverter(Converter converter)Define aConverterimplementation 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
-
-
-
-
Method Detail
-
setConverter
public void setConverter(Converter converter)
Description copied from interface:BatchConverterDefine aConverterimplementation to use for conversion of the individual documents. If no converter is given, theconvertmethod cannot convert documents (but can still create index pages).- Specified by:
setConverterin interfaceBatchConverter- Parameters:
converter- theConverterto use
-
convert
public void convert(java.io.File source, java.io.File target, boolean bRecurse, BatchHandler handler)Description copied from interface:BatchConverterConvert 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:
convertin interfaceBatchConverter- Parameters:
source- aFilerepresenting the directory to converttarget- aFilerepresenting the directory to contain the converted documentsbRecurse- determines wether or not to recurse into subdirectorieshandler- a BatchHandler
-
getIndexFileName
protected abstract java.lang.String getIndexFileName()
-
-