public class IFParser extends Object implements IFConstants
IFPainter events.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log
Logger instance
|
EL_BORDER_RECT, EL_CLIP_RECT, EL_DOCUMENT, EL_FONT, EL_GROUP, EL_HEADER, EL_ID, EL_IMAGE, EL_LINE, EL_LOCALE, EL_PAGE, EL_PAGE_CONTENT, EL_PAGE_HEADER, EL_PAGE_SEQUENCE, EL_PAGE_TRAILER, EL_RECT, EL_STRUCTURE_TREE, EL_TEXT, EL_TRAILER, EL_VIEWPORT, MIME_TYPE, NAMESPACECDATA, XLINK_HREF, XLINK_NAMESPACE, XLINK_PREFIX, XML_NAMESPACE, XML_PREFIX, XML_SPACE, XMLNS_NAMESPACE_URI, XMLNS_PREFIX| Constructor and Description |
|---|
IFParser() |
| Modifier and Type | Method and Description |
|---|---|
ContentHandler |
getContentHandler(IFDocumentHandler documentHandler,
FOUserAgent userAgent)
Creates a new ContentHandler instance that you can send the area tree XML to.
|
void |
parse(Source src,
IFDocumentHandler documentHandler,
FOUserAgent userAgent)
Parses an intermediate file and paints it.
|
public void parse(Source src, IFDocumentHandler documentHandler, FOUserAgent userAgent) throws TransformerException, IFException
src - the Source instance pointing to the intermediate filedocumentHandler - the intermediate format document handler used to process the IF eventsuserAgent - the user agentTransformerException - if an error occurs while parsing the area tree XMLIFException - if an IF-related error occurs inside the target document handlerpublic ContentHandler getContentHandler(IFDocumentHandler documentHandler, FOUserAgent userAgent)
documentHandler - the intermediate format document handler used to process the IF eventsuserAgent - the user agentCopyright © 2025 Apache Software Foundation. All rights reserved.