org.apache.cocoon.components.parser
Class XercesParser

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.xml.AbstractXMLProducer
              |
              +--org.apache.cocoon.components.parser.XercesParser
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, DOMFactory, org.xml.sax.ErrorHandler, org.apache.avalon.framework.logger.Loggable, Parser, org.apache.avalon.framework.thread.SingleThreaded, XMLProducer

public class XercesParser
extends AbstractXMLProducer
implements Parser, org.xml.sax.ErrorHandler, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.thread.SingleThreaded

Version:
CVS $Revision: 1.1.2.5 $ $Date: 2001/11/06 11:27:34 $
Author:
Pierpaolo Fumagalli (Apache Software Foundation, Exoffice Technologies)

Field Summary
protected  org.apache.avalon.framework.component.ComponentManager manager
          the component manager
protected  Resolver resolver
          the Entity Resolver
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.components.parser.Parser
ROLE
 
Constructor Summary
XercesParser()
           
 
Method Summary
 void compose(org.apache.avalon.framework.component.ComponentManager manager)
          Get the Entity Resolver from the component manager
 void error(org.xml.sax.SAXParseException e)
          Receive notification of a recoverable error.
 void fatalError(org.xml.sax.SAXParseException e)
          Receive notification of a fatal error.
 org.w3c.dom.Document newDocument()
          Create a new Document object.
 org.w3c.dom.Document newDocument(java.lang.String name)
          Create a new Document object with a specified DOCTYPE.
 org.w3c.dom.Document newDocument(java.lang.String name, java.lang.String pub, java.lang.String sys)
          Create a new Document object with a specified DOCTYPE, public ID and system ID.
 void parse(org.xml.sax.InputSource in)
           
 org.w3c.dom.Document parseDocument(org.xml.sax.InputSource input)
          Parses a new Document object from the given InputSource.
 void warning(org.xml.sax.SAXParseException e)
          Receive notification of a warning.
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
recycle, setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.components.parser.Parser
setContentHandler, setLexicalHandler
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Field Detail

manager

protected org.apache.avalon.framework.component.ComponentManager manager
the component manager

resolver

protected Resolver resolver
the Entity Resolver
Constructor Detail

XercesParser

public XercesParser()
             throws org.xml.sax.SAXException
Method Detail

compose

public void compose(org.apache.avalon.framework.component.ComponentManager manager)
             throws org.apache.avalon.framework.component.ComponentException
Get the Entity Resolver from the component manager
Specified by:
compose in interface org.apache.avalon.framework.component.Composable

parse

public void parse(org.xml.sax.InputSource in)
           throws org.xml.sax.SAXException,
                  java.io.IOException
Specified by:
parse in interface Parser

newDocument

public org.w3c.dom.Document newDocument()
Create a new Document object.
Specified by:
newDocument in interface DOMFactory

newDocument

public org.w3c.dom.Document newDocument(java.lang.String name)
Create a new Document object with a specified DOCTYPE.
Specified by:
newDocument in interface DOMFactory

newDocument

public org.w3c.dom.Document newDocument(java.lang.String name,
                                        java.lang.String pub,
                                        java.lang.String sys)
Create a new Document object with a specified DOCTYPE, public ID and system ID.
Specified by:
newDocument in interface DOMFactory

parseDocument

public org.w3c.dom.Document parseDocument(org.xml.sax.InputSource input)
                                   throws org.xml.sax.SAXException,
                                          java.io.IOException
Parses a new Document object from the given InputSource.
Specified by:
parseDocument in interface Parser

error

public void error(org.xml.sax.SAXParseException e)
           throws org.xml.sax.SAXException
Receive notification of a recoverable error.
Specified by:
error in interface org.xml.sax.ErrorHandler

fatalError

public void fatalError(org.xml.sax.SAXParseException e)
                throws org.xml.sax.SAXException
Receive notification of a fatal error.
Specified by:
fatalError in interface org.xml.sax.ErrorHandler

warning

public void warning(org.xml.sax.SAXParseException e)
             throws org.xml.sax.SAXException
Receive notification of a warning.
Specified by:
warning in interface org.xml.sax.ErrorHandler


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.