public class AreaTreeParser
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected static org.apache.commons.logging.Log |
log |
Logger instance
|
Constructor | Description |
---|---|
AreaTreeParser() |
Modifier and Type | Method | Description |
---|---|---|
org.xml.sax.ContentHandler |
getContentHandler(AreaTreeModel treeModel,
FOUserAgent userAgent) |
Creates a new ContentHandler instance that you can send the area tree XML to.
|
void |
parse(javax.xml.transform.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(javax.xml.transform.Source src, AreaTreeModel treeModel, FOUserAgent userAgent) throws javax.xml.transform.TransformerException
src
- the Source instance pointing to the intermediate filetreeModel
- the AreaTreeModel that the parsed pages are added touserAgent
- the user agentjavax.xml.transform.TransformerException
- if an error occurs while parsing the area tree XMLpublic org.xml.sax.ContentHandler getContentHandler(AreaTreeModel treeModel, FOUserAgent userAgent)
treeModel
- the AreaTreeModel that the parsed pages are added touserAgent
- the user agentCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.