01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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.cocoon.transformation.helpers;
18:
19: import org.apache.cocoon.xml.XMLConsumer;
20: import org.xml.sax.Attributes;
21: import org.xml.sax.ContentHandler;
22: import org.xml.sax.Locator;
23: import org.xml.sax.SAXException;
24: import org.xml.sax.ext.LexicalHandler;
25:
26: /**
27: * The base class for all recorders. Simply does nothing
28: *
29: * @author <a href="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
30: * @version CVS $Id: NOPRecorder.java 433543 2006-08-22 06:22:54Z crossley $
31: */
32: public abstract class NOPRecorder implements ContentHandler,
33: LexicalHandler, XMLConsumer {
34:
35: public NOPRecorder() {
36: }
37:
38: public void setDocumentLocator(Locator locator) {
39: }
40:
41: public void startDocument() throws SAXException {
42: }
43:
44: public void endDocument() throws SAXException {
45: }
46:
47: public void startPrefixMapping(String prefix, String uri)
48: throws SAXException {
49: }
50:
51: public void endPrefixMapping(String prefix) throws SAXException {
52: }
53:
54: public void startElement(String namespace, String name, String raw,
55: Attributes attr) throws SAXException {
56: }
57:
58: public void endElement(String namespace, String name, String raw)
59: throws SAXException {
60: }
61:
62: public void characters(char ary[], int start, int length)
63: throws SAXException {
64: }
65:
66: public void ignorableWhitespace(char ary[], int start, int length)
67: throws SAXException {
68: }
69:
70: public void processingInstruction(String target, String data)
71: throws SAXException {
72: }
73:
74: public void skippedEntity(String name) throws SAXException {
75: }
76:
77: public void startDTD(String name, String public_id, String system_id)
78: throws SAXException {
79: }
80:
81: public void endDTD() throws SAXException {
82: }
83:
84: public void startEntity(String name) throws SAXException {
85: }
86:
87: public void endEntity(String name) throws SAXException {
88: }
89:
90: public void startCDATA() throws SAXException {
91: }
92:
93: public void endCDATA() throws SAXException {
94: }
95:
96: public void comment(char ary[], int start, int length)
97: throws SAXException {
98: }
99: }
|