KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > xml > DefaultLexicalHandler


1 /*
2  * Copyright 2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.xml;
17
18 import org.xml.sax.SAXException JavaDoc;
19 import org.xml.sax.ext.LexicalHandler JavaDoc;
20
21 /**
22  * Default implementation of SAX's <code>LexicalHandler</code> interface. Empty implementation
23  * of all methods so that you only have to redefine the ones of interest.
24  *
25  * @version $Id: DefaultLexicalHandler.java 225805 2005-07-28 15:57:33Z sylvain $
26  */

27 public class DefaultLexicalHandler implements LexicalHandler JavaDoc {
28     
29     /**
30      * Shared instance that can be used when lexical events should be ignored.
31      */

32     public static final LexicalHandler JavaDoc NULL_HANDLER = new DefaultLexicalHandler();
33
34     public void startDTD(String JavaDoc name, String JavaDoc publicId, String JavaDoc systemId) throws SAXException JavaDoc {
35         // nothing
36
}
37
38     public void endDTD() throws SAXException JavaDoc {
39         // nothing
40
}
41
42     public void startEntity(String JavaDoc name) throws SAXException JavaDoc {
43         // nothing
44
}
45
46     public void endEntity(String JavaDoc name) throws SAXException JavaDoc {
47         // nothing
48
}
49
50     public void startCDATA() throws SAXException JavaDoc {
51         // nothing
52
}
53
54     public void endCDATA() throws SAXException JavaDoc {
55         // nothing
56
}
57
58     public void comment(char[] ch, int start, int length) throws SAXException JavaDoc {
59         // nothing
60
}
61 }
Popular Tags