KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > transformation > helpers > NOPRecorder


1 /*
2  * Copyright 1999-2004 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.transformation.helpers;
17
18 import org.apache.cocoon.xml.XMLConsumer;
19 import org.xml.sax.Attributes JavaDoc;
20 import org.xml.sax.ContentHandler JavaDoc;
21 import org.xml.sax.Locator JavaDoc;
22 import org.xml.sax.SAXException JavaDoc;
23 import org.xml.sax.ext.LexicalHandler JavaDoc;
24
25 /**
26  * The base class for all recorders. Simply does nothing
27  *
28  * @author <a HREF="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
29  * @version CVS $Id: NOPRecorder.java 30932 2004-07-29 17:35:38Z vgritsenko $
30 */

31 public abstract class NOPRecorder
32 implements ContentHandler JavaDoc, LexicalHandler JavaDoc, XMLConsumer {
33
34     public NOPRecorder() {
35     }
36
37     public void setDocumentLocator(Locator JavaDoc locator) {
38     }
39
40     public void startDocument()
41     throws SAXException JavaDoc {
42     }
43
44     public void endDocument()
45     throws SAXException JavaDoc {
46     }
47
48     public void startPrefixMapping(String JavaDoc prefix, String JavaDoc uri)
49     throws SAXException JavaDoc {
50     }
51
52     public void endPrefixMapping(String JavaDoc prefix)
53     throws SAXException JavaDoc {
54     }
55
56     public void startElement(String JavaDoc namespace, String JavaDoc name, String JavaDoc raw,
57                          Attributes JavaDoc attr)
58     throws SAXException JavaDoc {
59     }
60
61     public void endElement(String JavaDoc namespace, String JavaDoc name, String JavaDoc raw)
62     throws SAXException JavaDoc {
63     }
64
65     public void characters(char ary[], int start, int length)
66     throws SAXException JavaDoc {
67     }
68
69     public void ignorableWhitespace(char ary[], int start, int length)
70     throws SAXException JavaDoc {
71     }
72
73     public void processingInstruction(String JavaDoc target, String JavaDoc data)
74     throws SAXException JavaDoc {
75     }
76
77     public void skippedEntity(String JavaDoc name)
78     throws SAXException JavaDoc {
79     }
80
81     public void startDTD(String JavaDoc name, String JavaDoc public_id, String JavaDoc system_id)
82     throws SAXException JavaDoc {
83     }
84
85     public void endDTD() throws SAXException JavaDoc {
86     }
87
88     public void startEntity(String JavaDoc name) throws SAXException JavaDoc {
89     }
90
91     public void endEntity(String JavaDoc name) throws SAXException JavaDoc {
92     }
93
94     public void startCDATA() throws SAXException JavaDoc {
95     }
96
97     public void endCDATA() throws SAXException JavaDoc {
98     }
99
100     public void comment(char ary[], int start, int length)
101     throws SAXException JavaDoc {
102     }
103 }
104
Popular Tags