public abstract class AbstractExporter<CS extends AbstractConversionSettings,CC extends AbstractConversionContext,PK extends OpcPackage> extends Object implements Exporter<CS>
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LocalLog |
Modifier | Constructor and Description |
---|---|
protected |
AbstractExporter() |
Modifier and Type | Method and Description |
---|---|
protected abstract CC |
createContext(CS conversionSettings,
PK preprocessedPackage,
ConversionSectionWrappers sectionWrappers) |
protected OutputStream |
createIntermediateOutputStream(OutputStream outputStream) |
protected abstract ConversionSectionWrappers |
createWrappers(CS conversionSettings,
PK preprocessedPackage) |
void |
export(CS conversionSettings,
OutputStream outputStream) |
protected long |
logDebugStep(org.slf4j.Logger log,
String stepLabel,
long startTime) |
protected void |
postprocess(CS conversionSettings,
AbstractConversionContext conversionContext,
OutputStream intermediateOutputStream,
OutputStream outputStream) |
protected abstract PK |
preprocess(CS conversionSettings) |
protected abstract void |
process(CS conversionSettings,
CC conversionContext,
OutputStream outputStream) |
public void export(CS conversionSettings, OutputStream outputStream) throws Docx4JException
export
in interface Exporter<CS extends AbstractConversionSettings>
Docx4JException
protected long logDebugStep(org.slf4j.Logger log, String stepLabel, long startTime)
protected abstract PK preprocess(CS conversionSettings) throws Docx4JException
conversionSettings
- Docx4JException
protected abstract ConversionSectionWrappers createWrappers(CS conversionSettings, PK preprocessedPackage) throws Docx4JException
conversionSettings
- preprocessedPackage
- Docx4JException
protected abstract CC createContext(CS conversionSettings, PK preprocessedPackage, ConversionSectionWrappers sectionWrappers)
conversionSettings
- preprocessedPackage
- sectionWrappers
- protected OutputStream createIntermediateOutputStream(OutputStream outputStream) throws Docx4JException
outputStream
- Docx4JException
protected abstract void process(CS conversionSettings, CC conversionContext, OutputStream outputStream) throws Docx4JException
conversionSettings
- conversionContext
- outputStream
- Docx4JException
protected void postprocess(CS conversionSettings, AbstractConversionContext conversionContext, OutputStream intermediateOutputStream, OutputStream outputStream) throws Docx4JException
conversionSettings
- conversionContext
- intermediateOutputStream
- outputStream
- Docx4JException
Copyright © 2007-2019. All Rights Reserved.