public class AreaTreeParser extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
Logger instance
|
Constructor and Description |
---|
AreaTreeParser() |
Modifier and Type | Method and Description |
---|---|
ContentHandler |
getContentHandler(AreaTreeModel treeModel,
FOUserAgent userAgent)
Creates a new ContentHandler instance that you can send the area tree XML to.
|
void |
parse(Source src,
AreaTreeModel treeModel,
FOUserAgent userAgent)
Parses an intermediate file (area tree XML) into an AreaTreeModel instance by adding
pages to it.
|
public void parse(Source src, AreaTreeModel treeModel, FOUserAgent userAgent) throws TransformerException
src
- the Source instance pointing to the intermediate filetreeModel
- the AreaTreeModel that the parsed pages are added touserAgent
- the user agentTransformerException
- if an error occurs while parsing the area tree XMLpublic ContentHandler getContentHandler(AreaTreeModel treeModel, FOUserAgent userAgent)
treeModel
- the AreaTreeModel that the parsed pages are added touserAgent
- the user agentCopyright © 2025 Apache Software Foundation. All rights reserved.