org.apache.cocoon.core.xml
Interface SAXParser


public interface SAXParser

The parser can be used to parse any XML document given by a InputSource object. It can send XML events from the parsed document.

Since:
2.2
Version:
$Id: SAXParser.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Method Summary
 void parse(InputSource in, ContentHandler consumer)
          Parse the InputSource and send SAX events to the consumer.
 void parse(InputSource in, ContentHandler contentHandler, LexicalHandler lexicalHandler)
          Parse the InputSource and send SAX events to the content handler and the lexical handler.
 

Method Detail

parse

public void parse(InputSource in,
                  ContentHandler consumer)
           throws SAXException,
                  IOException
Parse the InputSource and send SAX events to the consumer. Attention: the consumer can implement the LexicalHandler as well. The parse should take care of this.

Throws:
SAXException
IOException

parse

public void parse(InputSource in,
                  ContentHandler contentHandler,
                  LexicalHandler lexicalHandler)
           throws SAXException,
                  IOException
Parse the InputSource and send SAX events to the content handler and the lexical handler.

Throws:
SAXException
IOException


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.