Package org.apache.cocoon.xml.sax
Class DefaultLexicalHandler
- java.lang.Object
-
- org.apache.cocoon.xml.sax.DefaultLexicalHandler
-
- All Implemented Interfaces:
LexicalHandler
public class DefaultLexicalHandler extends Object implements LexicalHandler
Default implementation of SAX'sLexicalHandler
interface. Empty implementation of all methods so that you only have to redefine the ones of interest.
-
-
Field Summary
Fields Modifier and Type Field Description static LexicalHandler
NULL_HANDLER
Shared instance that can be used when lexical events should be ignored.
-
Constructor Summary
Constructors Constructor Description DefaultLexicalHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Field Detail
-
NULL_HANDLER
public static final LexicalHandler NULL_HANDLER
Shared instance that can be used when lexical events should be ignored.
-
-
Method Detail
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
-