站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

AbstractParser - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.format.parser
Class AbstractParser

java.lang.Object
  extended byorg.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.


Field Summary
protected  ParseEventHandler handler
          The event handler.
 
Constructor Summary
AbstractParser()
           
 
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
 

Field Detail

handler

protected ParseEventHandler handler
The event handler.

Constructor Detail

AbstractParser

public AbstractParser()
Method Detail

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.