org.apache.cocoon.xml
Class DefaultLexicalHandler

java.lang.Object
  extended by org.apache.cocoon.xml.DefaultLexicalHandler
All Implemented Interfaces:
LexicalHandler

public class DefaultLexicalHandler
extends Object
implements LexicalHandler

Default implementation of SAX's LexicalHandler interface. Empty implementation of all methods so that you only have to redefine the ones of interest.

Version:
$Id: DefaultLexicalHandler.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
static LexicalHandler NULL_HANDLER
          Shared instance that can be used when lexical events should be ignored.
 
Constructor Summary
DefaultLexicalHandler()
           
 
Method Summary
 void comment(char[] ch, int start, int length)
           
 void endCDATA()
           
 void endDTD()
           
 void endEntity(String name)
           
 void startCDATA()
           
 void startDTD(String name, String publicId, String systemId)
           
 void startEntity(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_HANDLER

public static final LexicalHandler NULL_HANDLER
Shared instance that can be used when lexical events should be ignored.

Constructor Detail

DefaultLexicalHandler

public DefaultLexicalHandler()
Method Detail

startDTD

public void startDTD(String name,
                     String publicId,
                     String systemId)
              throws SAXException
Specified by:
startDTD in interface LexicalHandler
Throws:
SAXException

endDTD

public void endDTD()
            throws SAXException
Specified by:
endDTD in interface LexicalHandler
Throws:
SAXException

startEntity

public void startEntity(String name)
                 throws SAXException
Specified by:
startEntity in interface LexicalHandler
Throws:
SAXException

endEntity

public void endEntity(String name)
               throws SAXException
Specified by:
endEntity in interface LexicalHandler
Throws:
SAXException

startCDATA

public void startCDATA()
                throws SAXException
Specified by:
startCDATA in interface LexicalHandler
Throws:
SAXException

endCDATA

public void endCDATA()
              throws SAXException
Specified by:
endCDATA in interface LexicalHandler
Throws:
SAXException

comment

public void comment(char[] ch,
                    int start,
                    int length)
             throws SAXException
Specified by:
comment in interface LexicalHandler
Throws:
SAXException


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