KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > outerj > daisy > books > publisher > impl > util > AbstractContentHandler


1 /*
2  * Copyright 2004 Outerthought bvba and Schaubroeck nv
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.outerj.daisy.books.publisher.impl.util;
17
18 import org.xml.sax.ContentHandler JavaDoc;
19 import org.xml.sax.SAXException JavaDoc;
20 import org.xml.sax.Locator JavaDoc;
21 import org.xml.sax.Attributes JavaDoc;
22
23 public abstract class AbstractContentHandler implements ContentHandler JavaDoc {
24     protected ContentHandler JavaDoc consumer;
25
26     public AbstractContentHandler(ContentHandler JavaDoc consumer) {
27         this.consumer = consumer;
28     }
29
30     public void endDocument() throws SAXException JavaDoc {
31         consumer.endDocument();
32     }
33
34     public void startDocument() throws SAXException JavaDoc {
35         consumer.startDocument();
36     }
37
38     public void characters(char ch[], int start, int length) throws SAXException JavaDoc {
39         consumer.characters(ch, start, length);
40     }
41
42     public void ignorableWhitespace(char ch[], int start, int length) throws SAXException JavaDoc {
43         consumer.ignorableWhitespace(ch, start, length);
44     }
45
46     public void endPrefixMapping(String JavaDoc prefix) throws SAXException JavaDoc {
47         consumer.endPrefixMapping(prefix);
48     }
49
50     public void skippedEntity(String JavaDoc name) throws SAXException JavaDoc {
51         consumer.skippedEntity(name);
52     }
53
54     public void setDocumentLocator(Locator JavaDoc locator) {
55         consumer.setDocumentLocator(locator);
56     }
57
58     public void processingInstruction(String JavaDoc target, String JavaDoc data) throws SAXException JavaDoc {
59         consumer.processingInstruction(target, data);
60     }
61
62     public void startPrefixMapping(String JavaDoc prefix, String JavaDoc uri) throws SAXException JavaDoc {
63         consumer.startPrefixMapping(prefix, uri);
64     }
65
66     public void endElement(String JavaDoc namespaceURI, String JavaDoc localName, String JavaDoc qName) throws SAXException JavaDoc {
67         consumer.endElement(namespaceURI, localName, qName);
68     }
69
70     public void startElement(String JavaDoc namespaceURI, String JavaDoc localName, String JavaDoc qName, Attributes JavaDoc atts) throws SAXException JavaDoc {
71         consumer.startElement(namespaceURI, localName, qName, atts);
72     }
73 }
74
Popular Tags