de.zeigermann.xpa.treeParser
Class SAXDrivenASTParser

java.lang.Object
  |
  +--de.zeigermann.xpa.treeParser.Parser2XMLASTAdapter
        |
        +--de.zeigermann.xpa.treeParser.SAXDrivenASTParser

public class SAXDrivenASTParser
extends Parser2XMLASTAdapter

This class is an AST generating parser driven an underlying SAX parser.


Field Summary
 
Fields inherited from class de.zeigermann.xpa.treeParser.Parser2XMLASTAdapter
tokenManager, tree, treeStack
 
Constructor Summary
SAXDrivenASTParser(XMLTokenTypeManager tokenManager)
          Creates a new parser using tokenManager.
 
Method Summary
 void parse(InputSource is)
          Parses a XML from an input source
 void parse(InputStream in)
          Parses a XML from an input stream
 void parse(Reader in)
          Parses a XML from a reader.
 
Methods inherited from class de.zeigermann.xpa.treeParser.Parser2XMLASTAdapter
getAST, getIgnoreAllWhiteSpace, getTreatValidWhiteSpaceAsIgnorable, parse, setIgnoreAllWhiteSpace, setTreatValidWhiteSpaceAsIgnorable, tellEndElement, tellPCDATA, tellStartDocument, tellStartElement, tellWhiteSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXDrivenASTParser

public SAXDrivenASTParser(XMLTokenTypeManager tokenManager)
Creates a new parser using tokenManager.

Parameters:
tokenManager - the token manager to determine token types for token generation
Method Detail

parse

public void parse(Reader in)
           throws XPAParseException
Parses a XML from a reader.

Specified by:
parse in class Parser2XMLASTAdapter
Parameters:
in - the reader to parse from
XPAParseException

parse

public void parse(InputStream in)
           throws XPAParseException
Parses a XML from an input stream

Specified by:
parse in class Parser2XMLASTAdapter
Parameters:
in - the input stream to parse from
XPAParseException

parse

public void parse(InputSource is)
           throws XPAParseException
Parses a XML from an input source

XPAParseException


Copyright 1999-2003 Oliver Zeigermann. All Rights Reserved.