Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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: 8784 $
Author:
  Julien Viet

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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD