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'sLexicalHandlerinterface. 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 LexicalHandlerNULL_HANDLERShared 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 voidcomment(char[] ch, int start, int length)voidendCDATA()voidendDTD()voidendEntity(String name)voidstartCDATA()voidstartDTD(String name, String publicId, String systemId)voidstartEntity(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:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
-