KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > excalibur > xml > sax > NOPLexicalHandler


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

17 package org.apache.excalibur.xml.sax;
18
19 import org.xml.sax.SAXException JavaDoc;
20 import org.xml.sax.ext.LexicalHandler JavaDoc;
21
22 /**
23  * This class provides default implementation of the methods specified
24  * by the <code>LexicalHandler</code> interface.
25  *
26  * @author <a HREF="mailto:dev@avalon.apache.org">Avalon Development Team</a>
27  * @version CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:20 $
28  */

29 public class NOPLexicalHandler
30     implements LexicalHandler JavaDoc
31 {
32     /**
33      * Report the start of DTD declarations, if any.
34      *
35      * @param name The document type name.
36      * @param publicId The declared public identifier for the external DTD
37      * subset, or null if none was declared.
38      * @param systemId The declared system identifier for the external DTD
39      * subset, or null if none was declared.
40      */

41     public void startDTD( final String JavaDoc name,
42                           final String JavaDoc publicId,
43                           final String JavaDoc systemId )
44         throws SAXException JavaDoc
45     {
46     }
47
48     /**
49      * Report the end of DTD declarations.
50      */

51     public void endDTD()
52         throws SAXException JavaDoc
53     {
54     }
55
56     /**
57      * Report the beginning of an entity.
58      *
59      * @param name The name of the entity. If it is a parameter entity, the
60      * name will begin with '%'.
61      */

62     public void startEntity( final String JavaDoc name )
63         throws SAXException JavaDoc
64     {
65     }
66
67     /**
68      * Report the end of an entity.
69      *
70      * @param name The name of the entity that is ending.
71      */

72     public void endEntity( final String JavaDoc name )
73         throws SAXException JavaDoc
74     {
75     }
76
77     /**
78      * Report the start of a CDATA section.
79      */

80     public void startCDATA()
81         throws SAXException JavaDoc
82     {
83     }
84
85     /**
86      * Report the end of a CDATA section.
87      */

88     public void endCDATA()
89         throws SAXException JavaDoc
90     {
91     }
92
93     /**
94      * Report an XML comment anywhere in the document.
95      *
96      * @param ch An array holding the characters in the comment.
97      * @param start The starting position in the array.
98      * @param len The number of characters to use from the array.
99      */

100     public void comment( final char[] ch,
101                          final int start,
102                          final int len )
103         throws SAXException JavaDoc
104     {
105     }
106 }
107
Popular Tags