fr.opensagres.xdocreport.document.docx.preprocessor.sax.numbering
Class DocxNumberingPreprocessor
java.lang.Object
fr.opensagres.xdocreport.document.preprocessor.AbstractXDocPreprocessor<InputStream>
fr.opensagres.xdocreport.document.preprocessor.sax.SAXXDocPreprocessor
fr.opensagres.xdocreport.document.docx.preprocessor.sax.numbering.DocxNumberingPreprocessor
- All Implemented Interfaces:
- IXDocPreprocessor
public class DocxNumberingPreprocessor
- extends SAXXDocPreprocessor
This processor modify the XML entry word/numbering.xml
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final IXDocPreprocessor INSTANCE
DocxNumberingPreprocessor
public DocxNumberingPreprocessor()
createBufferedDocumentContentHandler
protected BufferedDocumentContentHandler createBufferedDocumentContentHandler(String entryName,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formater,
Map<String,Object> sharedContext)
- Specified by:
createBufferedDocumentContentHandler
in class SAXXDocPreprocessor
create
public boolean create(String entryName,
XDocArchive outputArchive,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formatter,
Map<String,Object> sharedContext)
throws XDocReportException,
IOException
- Description copied from interface:
IXDocPreprocessor
- Create the XML file identify with te entry name from the archive.
- Specified by:
create
in interface IXDocPreprocessor
- Overrides:
create
in class AbstractXDocPreprocessor<InputStream>
- Parameters:
entryName
- 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).
- Returns:
- true if processing can create entry and false otherwise.
- Throws:
XDocReportException
IOException
Copyright © 2013. All rights reserved.