|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.intermediate.util.IFConcatenator
public class IFConcatenator
This class allows to concatenate multiple intermediate format files to a single output file in the final format. It is based on the SAX API and is therefore very fast and does not require to load the individual documents into memory as DOM documents, for example.
Note: This class will filter/ignore any document navigation events. Support for this may be added later.
Note: document-level extensions will only be transferred from the first document passed in. If you need to merge extensions from all the concatenated documents, you may have to merge these manually on the XML level, for example using XSLT.
Constructor Summary | |
---|---|
IFConcatenator(IFDocumentHandler targetHandler,
org.apache.xmlgraphics.xmp.Metadata metadata)
Creates a new IF concatenator. |
Method Summary | |
---|---|
void |
appendDocument(javax.xml.transform.Source src)
Appends another intermediate format document to the current output file. |
void |
finish()
Properly finishes the current output file by creating an empty document trailer and calling IFDocumentHandler.endDocument() . |
protected IFDocumentHandler |
getTargetHandler()
Returns the target document handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IFConcatenator(IFDocumentHandler targetHandler, org.apache.xmlgraphics.xmp.Metadata metadata) throws IFException
targetHandler
- the target document handlermetadata
- the metadata object for the generated file (may be null)
IFException
- if an IF-related error occursMethod Detail |
---|
protected IFDocumentHandler getTargetHandler()
public void finish() throws IFException
IFDocumentHandler.endDocument()
.
IFException
- if an IF-related error occurspublic void appendDocument(javax.xml.transform.Source src) throws javax.xml.transform.TransformerException, IFException
finish()
has been called.
src
- the JAXP Source identifying the input document
javax.xml.transform.TransformerException
- if an XML-related exception occurs during
IFException
- if an IF-related error occurs
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |