Package writer2latex.xhtml
Class BatchConverterImpl
- java.lang.Object
-
- writer2latex.base.BatchConverterBase
-
- writer2latex.xhtml.BatchConverterImpl
-
- All Implemented Interfaces:
BatchConverter
public class BatchConverterImpl extends BatchConverterBase
Implementation ofwriter2latex.api.BatchConverterfor xhtml 1.0 strict
-
-
Constructor Summary
Constructors Constructor Description BatchConverterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputFilecreateIndexFile(java.lang.String sHeading, IndexPageEntry[] entries)Create an index page with specific entriesConfiggetConfig()Get the configuration interface for this batch converterprotected java.lang.StringgetIndexFileName()voidreadTemplate(java.io.File file)Read a template to use as a base for the index pages.voidreadTemplate(java.io.InputStream is)Read a template to use as a base for the index pages.-
Methods inherited from class writer2latex.base.BatchConverterBase
convert, setConverter
-
-
-
-
Method Detail
-
getConfig
public Config getConfig()
Description copied from interface:BatchConverterGet the configuration interface for this batch converter- Returns:
- the configuration
-
readTemplate
public void readTemplate(java.io.InputStream is) throws java.io.IOExceptionDescription copied from interface:BatchConverterRead a template to use as a base for the index pages. The format of the template depends on theBatchConverterimplementation.- Parameters:
is- anInputStreamfrom which to read the template- Throws:
java.io.IOException- if some exception occurs while reading the template
-
readTemplate
public void readTemplate(java.io.File file) throws java.io.IOExceptionDescription copied from interface:BatchConverterRead a template to use as a base for the index pages. The format of the template depends on theBatchConverterimplementation.- Parameters:
file- the file from which to read the template- Throws:
java.io.IOException- if the file does not exist or some exception occurs while reading the template
-
getIndexFileName
protected java.lang.String getIndexFileName()
- Specified by:
getIndexFileNamein classBatchConverterBase
-
createIndexFile
public OutputFile createIndexFile(java.lang.String sHeading, IndexPageEntry[] entries)
Description copied from interface:BatchConverterCreate an index page with specific entries- Parameters:
sHeading- a heading describing the index pageentries- an array ofIndexPageEntryobjects (null entries are allowed, and will be ignored) describing the individual directories and documents
-
-