当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
AbstractParser - JBOSS Portal 2.2 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.
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.