org.apache.fop.area
Class AreaTreeParser
java.lang.Object
org.apache.fop.area.AreaTreeParser
public class AreaTreeParser
extends java.lang.Object
This is a parser for the area tree XML (intermediate format) which is used to reread an area
tree (or part of it) into memory again for rendering to the final output format.
protected static Log | log - Logger instance
|
log
protected static Log log
Logger instance
getContentHandler
public ContentHandler getContentHandler(AreaTreeModel treeModel,
FOUserAgent userAgent)
Creates a new ContentHandler instance that you can send the area tree XML to. The parsed
pages are added to the AreaTreeModel instance you pass in as a parameter.
treeModel
- the AreaTreeModel that the parsed pages are added touserAgent
- the user agent
- the ContentHandler instance to receive the SAX stream from the area tree XML
parse
public void parse(Source src,
AreaTreeModel treeModel,
FOUserAgent userAgent)
throws TransformerException
Parses an intermediate file (area tree XML) into an AreaTreeModel instance by adding
pages to it.
src
- the Source instance pointing to the intermediate filetreeModel
- the AreaTreeModel that the parsed pages are added touserAgent
- the user agent
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.