当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
AbstractParser - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.format.parser
Class AbstractParser
java.lang.Object
org.jboss.portal.format.parser.AbstractParser
- All Implemented Interfaces:
- ParseEventNotifier
- Direct Known Subclasses:
- BBCodeParser, HTML4_0CharacterEntityReferenceParser, LineBreakParser, TagParser, XML1_0CharacterEntityReferenceParser
- public abstract class AbstractParser
- extends java.lang.Object
- implements ParseEventNotifier
This is an abstract parser. All the parsed events will go though the event notifier interface.
- Version:
- $Revision: 5448 $
- Author:
- Julien Viet
Method Summary |
abstract void |
parse(char[] chars,
int offset,
int length)
Ask the parser to its job. |
void |
setHandler(ParseEventHandler handler)
Set the event handler on this parser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
handler
protected ParseEventHandler handler
- The event handler.
AbstractParser
public AbstractParser()
setHandler
public void setHandler(ParseEventHandler handler)
- Set the event handler on this parser.
- Specified by:
setHandler
in interface ParseEventNotifier
parse
public abstract void parse(char[] chars,
int offset,
int length)
- Ask the parser to its job.