|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.doxia.docrenderer.itext.AbstractITextRender
public abstract class AbstractITextRender
Abstract document
render with the iText
framework
Field Summary | |
---|---|
private static javax.xml.parsers.DocumentBuilderFactory |
DOCUMENT_BUILDER_FACTORY
|
protected org.apache.maven.doxia.Doxia |
doxia
|
protected org.apache.maven.doxia.module.site.manager.SiteModuleManager |
siteModuleManager
|
private static javax.xml.transform.TransformerFactory |
TRANSFORMER_FACTORY
|
private static java.lang.String |
XSLT_RESOURCE
|
Fields inherited from interface org.apache.maven.doxia.docrenderer.DocRenderer |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractITextRender()
|
Method Summary | |
---|---|
private void |
addTransformerParameters(javax.xml.transform.Transformer transformer,
org.apache.maven.doxia.docrenderer.document.DocumentModel documentModel)
Add transformer parameters |
private org.w3c.dom.Document |
generateDocument(java.util.List iTextFiles)
Merge all iTextFiles to a single one |
abstract void |
generateOutput(java.io.File iTextFile,
java.io.File iTextOutput)
Generate an ouput file with the iText framework |
private javax.xml.transform.Transformer |
initTransformer()
Init the transformer object |
private void |
parse(java.lang.String fullPathDoc,
org.apache.maven.doxia.module.site.SiteModule module,
java.io.File outputITextFile)
Parse a sink |
void |
render(java.io.File siteDirectory,
java.io.File outputDirectory)
Render all files from a site directory to an output directory |
void |
render(java.io.File siteDirectory,
java.io.File outputDirectory,
java.io.File documentDescriptor)
Render a document depending a context and a document descriptor |
private void |
transform(org.apache.maven.doxia.docrenderer.document.DocumentModel documentModel,
org.w3c.dom.Document document,
java.io.File iTextFile)
Transform a document to an iTextFile |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.doxia.docrenderer.DocRenderer |
---|
getOutputExtension |
Field Detail |
---|
private static java.lang.String XSLT_RESOURCE
private static final javax.xml.transform.TransformerFactory TRANSFORMER_FACTORY
private static final javax.xml.parsers.DocumentBuilderFactory DOCUMENT_BUILDER_FACTORY
protected org.apache.maven.doxia.module.site.manager.SiteModuleManager siteModuleManager
protected org.apache.maven.doxia.Doxia doxia
Constructor Detail |
---|
public AbstractITextRender()
Method Detail |
---|
public void render(java.io.File siteDirectory, java.io.File outputDirectory) throws DocRendererException, java.io.IOException
DocRenderer
render
in interface DocRenderer
siteDirectory
- the input directory contains files to be generatedoutputDirectory
- the output directory where files are generated
DocRendererException
- if any
java.io.IOException
- if anyDocRenderer.render(java.io.File, java.io.File)
public void render(java.io.File siteDirectory, java.io.File outputDirectory, java.io.File documentDescriptor) throws DocRendererException, java.io.IOException
DocRenderer
render
in interface DocRenderer
siteDirectory
- the input directory contains files to be generatedoutputDirectory
- the output directory where file are generateddocumentDescriptor
- the document descriptor
DocRendererException
- if any
java.io.IOException
- if anyDocRenderer.render(java.io.File, java.io.File, java.io.File)
public abstract void generateOutput(java.io.File iTextFile, java.io.File iTextOutput) throws DocRendererException, java.io.IOException
iTextFile
- iTextOutput
-
DocRendererException
- if any
java.io.IOException
- if anyprivate void parse(java.lang.String fullPathDoc, org.apache.maven.doxia.module.site.SiteModule module, java.io.File outputITextFile) throws DocRendererException, java.io.IOException
fullPathDoc
- module
- outputITextFile
-
DocRendererException
java.io.IOException
private org.w3c.dom.Document generateDocument(java.util.List iTextFiles) throws DocRendererException, java.io.IOException
iTextFiles
-
DocRendererException
- if any
java.io.IOException
- if anyprivate javax.xml.transform.Transformer initTransformer() throws DocRendererException
DocRendererException
- if anyprivate void addTransformerParameters(javax.xml.transform.Transformer transformer, org.apache.maven.doxia.docrenderer.document.DocumentModel documentModel)
transformer
- documentModel
- private void transform(org.apache.maven.doxia.docrenderer.document.DocumentModel documentModel, org.w3c.dom.Document document, java.io.File iTextFile) throws DocRendererException
documentModel
- document
- iTextFile
-
DocRendererException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |