public abstract class AbstractXDocPreprocessor<T> extends Object implements IXDocPreprocessor
IXDocPreprocessor.| Constructor and Description |
|---|
AbstractXDocPreprocessor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
closeSource(T reader) |
boolean |
create(String entryName,
XDocArchive outputArchive,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formatter,
Map<String,Object> sharedContext)
Create the XML file identify with te entry name from the archive.
|
protected void |
createAndProcess(String entryName,
XDocArchive outputArchive,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formatter,
Map<String,Object> sharedContext,
InputStream input) |
protected abstract T |
getSource(XDocArchive documentArchive,
String entryName) |
abstract boolean |
preprocess(String entryName,
T reader,
Writer writer,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formater,
Map<String,Object> context) |
void |
preprocess(String entryName,
XDocArchive documentArchive,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formater,
Map<String,Object> sharedContext)
Modify the XML file identify with te entry name from the archive.
|
public void preprocess(String entryName, XDocArchive documentArchive, FieldsMetadata fieldsMetadata, IDocumentFormatter formater, Map<String,Object> sharedContext) throws XDocReportException, IOException
IXDocPreprocessorpreprocess in interface IXDocPreprocessorentryName - Zip entry name fo the XML file to modify.documentArchive - the zip of the XML document.fieldsMetadata - metdata fields.sharedContext - shared context between the whole processor to execute. This Map can be used to share
information between processors (according the order of the processor registration).XDocReportExceptionIOExceptionprotected abstract void closeSource(T reader) throws XDocReportException, IOException
XDocReportExceptionIOExceptionpublic boolean create(String entryName, XDocArchive outputArchive, FieldsMetadata fieldsMetadata, IDocumentFormatter formatter, Map<String,Object> sharedContext) throws XDocReportException, IOException
IXDocPreprocessorcreate in interface IXDocPreprocessorentryName - Zip entry name fo the XML file to modify.outputArchive - the zip of the XML document.fieldsMetadata - metdata fields.sharedContext - shared context between the whole processor to execute. This Map can be used to share
information between processors (according the order of the processor registration).XDocReportExceptionIOExceptionprotected void createAndProcess(String entryName, XDocArchive outputArchive, FieldsMetadata fieldsMetadata, IDocumentFormatter formatter, Map<String,Object> sharedContext, InputStream input) throws IOException, XDocReportException
IOExceptionXDocReportExceptionpublic abstract boolean preprocess(String entryName, T reader, Writer writer, FieldsMetadata fieldsMetadata, IDocumentFormatter formater, Map<String,Object> context) throws XDocReportException, IOException
XDocReportExceptionIOExceptionprotected abstract T getSource(XDocArchive documentArchive, String entryName) throws XDocReportException, IOException
XDocReportExceptionIOExceptionCopyright © 2015. All Rights Reserved.