org.apache.cocoon.components.parser
Class XercesParser

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.xml.AbstractXMLProducer
          extended by org.apache.cocoon.components.parser.XercesParser
All Implemented Interfaces:
Poolable, Recyclable, Disposable, Component, Composable, LogEnabled, Parser, DOMFactory, XMLProducer, ErrorHandler

Deprecated. The Avalon XML Parser is now used inside Cocoon. This role will be removed in future releases.

public class XercesParser
extends AbstractXMLProducer
implements Parser, ErrorHandler, Composable, Disposable

Version:
CVS $Id: XercesParser.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Pierpaolo Fumagalli (Apache Software Foundation)

Field Summary
protected  ComponentManager manager
          Deprecated. the component manager
protected  Resolver resolver
          Deprecated. the Entity Resolver
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.components.parser.Parser
ROLE
 
Constructor Summary
XercesParser()
          Deprecated.  
 
Method Summary
 void compose(ComponentManager manager)
          Deprecated. Get the Entity Resolver from the component manager
 void dispose()
          Deprecated. Dispose
 void error(SAXParseException e)
          Deprecated. Receive notification of a recoverable error.
 void fatalError(SAXParseException e)
          Deprecated. Receive notification of a fatal error.
 Document newDocument()
          Deprecated. Create a new Document object.
 Document newDocument(String name)
          Deprecated. Create a new Document object with a specified DOCTYPE.
 Document newDocument(String name, String pub, String sys)
          Deprecated. Create a new Document object with a specified DOCTYPE, public ID and system ID.
 void parse(InputSource in)
          Deprecated.  
 Document parseDocument(InputSource input)
          Deprecated. Parses a new Document object from the given InputSource.
 void warning(SAXParseException e)
          Deprecated. 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.AbstractLogEnabled
enableLogging, getLogger, 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 ComponentManager manager
Deprecated. 
the component manager


resolver

protected Resolver resolver
Deprecated. 
the Entity Resolver

Constructor Detail

XercesParser

public XercesParser()
             throws SAXException
Deprecated. 
Throws:
SAXException
Method Detail

compose

public void compose(ComponentManager manager)
             throws ComponentException
Deprecated. 
Get the Entity Resolver from the component manager

Specified by:
compose in interface Composable
Throws:
ComponentException

dispose

public void dispose()
Deprecated. 
Dispose

Specified by:
dispose in interface Disposable

parse

public void parse(InputSource in)
           throws SAXException,
                  IOException
Deprecated. 
Specified by:
parse in interface Parser
Throws:
SAXException
IOException

newDocument

public Document newDocument()
Deprecated. 
Create a new Document object.

Specified by:
newDocument in interface DOMFactory

newDocument

public Document newDocument(String name)
Deprecated. 
Create a new Document object with a specified DOCTYPE.

Specified by:
newDocument in interface DOMFactory

newDocument

public Document newDocument(String name,
                            String pub,
                            String sys)
Deprecated. 
Create a new Document object with a specified DOCTYPE, public ID and system ID.

Specified by:
newDocument in interface DOMFactory

parseDocument

public Document parseDocument(InputSource input)
                       throws SAXException,
                              IOException
Deprecated. 
Parses a new Document object from the given InputSource.

Specified by:
parseDocument in interface Parser
Throws:
SAXException
IOException

error

public void error(SAXParseException e)
           throws SAXException
Deprecated. 
Receive notification of a recoverable error.

Specified by:
error in interface ErrorHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException e)
                throws SAXException
Deprecated. 
Receive notification of a fatal error.

Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException

warning

public void warning(SAXParseException e)
             throws SAXException
Deprecated. 
Receive notification of a warning.

Specified by:
warning in interface ErrorHandler
Throws:
SAXException


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