KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
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
21 /**
22  * This class provides default implementation of the methods specified
23  * by the <code>LexicalHandler</code> and the <code>ContentHandler</code>
24  * 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 NOPXMLConsumer
30     extends NOPContentHandler
31     implements XMLConsumer
32 {
33     
34     /**
35      * Report the start of DTD declarations, if any.
36      *
37      * @param name The document type name.
38      * @param publicId The declared public identifier for the external DTD
39      * subset, or null if none was declared.
40      * @param systemId The declared system identifier for the external DTD
41      * subset, or null if none was declared.
42      */

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

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

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

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

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

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

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