writer2latex.xhtml

Class BatchConverterImpl

Implemented Interfaces:
BatchConverter

public class BatchConverterImpl
extends BatchConverterBase

Implementation of writer2latex.api.BatchConverter for xhtml 1.0 strict

Constructor Summary

BatchConverterImpl()

Method Summary

OutputFile
createIndexFile(String sHeading, IndexPageEntry[] entries)
Create an index page with specific entries
Config
getConfig()
Get the configuration interface for this batch converter
protected String
getIndexFileName()
void
readTemplate(File file)
Read a template to use as a base for the index pages.
void
readTemplate(InputStream is)
Read a template to use as a base for the index pages.

Methods inherited from class writer2latex.base.BatchConverterBase

convert, getIndexFileName, setConverter

Constructor Details

BatchConverterImpl

public BatchConverterImpl()

Method Details

createIndexFile

public OutputFile createIndexFile(String sHeading,
                                  IndexPageEntry[] entries)
Create an index page with specific entries
Specified by:
createIndexFile in interface BatchConverter
Parameters:
sHeading - a heading describing the index page
entries - an array of IndexPageEntry objects (null entries are allowed, and will be ignored) describing the individual directories and documents

getConfig

public Config getConfig()
Get the configuration interface for this batch converter
Specified by:
getConfig in interface BatchConverter
Returns:
the configuration

getIndexFileName

protected String getIndexFileName()
Overrides:
getIndexFileName in interface BatchConverterBase

readTemplate

public void readTemplate(File file)
            throws IOException
Read a template to use as a base for the index pages. The format of the template depends on the BatchConverter implementation.
Specified by:
readTemplate in interface BatchConverter
Parameters:
file - the file from which to read the template

readTemplate

public void readTemplate(InputStream is)
            throws IOException
Read a template to use as a base for the index pages. The format of the template depends on the BatchConverter implementation.
Specified by:
readTemplate in interface BatchConverter
Parameters:
is - an InputStream from which to read the template