public class ReplayParseEventDelegator extends Object implements ParseEventHandler
Modifier and Type | Field and Description |
---|---|
static int |
PHASE_MODIFY |
static int |
PHASE_POST_OUTPUT |
static int |
PHASE_PRE_MODIFY |
Constructor and Description |
---|
ReplayParseEventDelegator() |
Modifier and Type | Method and Description |
---|---|
protected void |
emit(ParseContext context,
org.htmlparser.Node node) |
ParseEventDelegator |
getModifyDelegator() |
ParseEventDelegator |
getPostModifyDelegator() |
ParseEventDelegator |
getPreModifyDelegator() |
void |
handleNode(ParseContext pContext,
org.htmlparser.Node node) |
void |
handleParseComplete(ParseContext context) |
void |
handleParseStart(ParseContext context) |
void |
init() |
void |
setModifyDelegator(ParseEventDelegator modifyDelegator) |
void |
setParserVisitors(List<ReplayParseEventDelegatorVisitor> parserVisitors) |
void |
setPostModifyDelegator(ParseEventDelegator postModifyDelegator) |
void |
setPreModifyDelegator(ParseEventDelegator preModifyDelegator) |
public static final int PHASE_PRE_MODIFY
public static final int PHASE_MODIFY
public static final int PHASE_POST_OUTPUT
protected void emit(ParseContext context, org.htmlparser.Node node) throws IOException
IOException
public void init()
public void handleNode(ParseContext pContext, org.htmlparser.Node node) throws IOException
handleNode
in interface ParseEventHandler
IOException
public void handleParseStart(ParseContext context) throws IOException
handleParseStart
in interface ParseEventHandler
IOException
public void handleParseComplete(ParseContext context) throws IOException
handleParseComplete
in interface ParseEventHandler
IOException
public ParseEventDelegator getPreModifyDelegator()
public void setPreModifyDelegator(ParseEventDelegator preModifyDelegator)
preModifyDelegator
- the preModifyDelegator to setpublic ParseEventDelegator getModifyDelegator()
public void setModifyDelegator(ParseEventDelegator modifyDelegator)
modifyDelegator
- the modifyDelegator to setpublic ParseEventDelegator getPostModifyDelegator()
public void setPostModifyDelegator(ParseEventDelegator postModifyDelegator)
postModifyDelegator
- the postModifyDelegator to setpublic void setParserVisitors(List<ReplayParseEventDelegatorVisitor> parserVisitors)
parserVisitors
- the parserVisitors to setCopyright © 2005–2015 IIPC. All rights reserved.