View Javadoc

1   /*
2    * Copyright 2001-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.saxbenchmark;
17  
18  import org.xml.sax.Attributes;
19  import org.xml.sax.ContentHandler;
20  import org.xml.sax.Locator;
21  import org.xml.sax.SAXException;
22  
23  /***
24   * @author JMcCrindle
25   */
26  public class EmptyContentHandler implements ContentHandler {
27  
28      /* (non-Javadoc)
29       * @see org.xml.sax.ContentHandler#endDocument()
30       */
31      public void endDocument() throws SAXException {
32      }
33  
34      /* (non-Javadoc)
35       * @see org.xml.sax.ContentHandler#startDocument()
36       */
37      public void startDocument() throws SAXException {
38      }
39  
40      /* (non-Javadoc)
41       * @see org.xml.sax.ContentHandler#characters(char[], int, int)
42       */
43      public void characters(char[] ch, int start, int length) throws SAXException {
44      }
45  
46      /* (non-Javadoc)
47       * @see org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int)
48       */
49      public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException {
50      }
51  
52      /* (non-Javadoc)
53       * @see org.xml.sax.ContentHandler#endPrefixMapping(java.lang.String)
54       */
55      public void endPrefixMapping(String prefix) throws SAXException {
56      }
57  
58      /* (non-Javadoc)
59       * @see org.xml.sax.ContentHandler#skippedEntity(java.lang.String)
60       */
61      public void skippedEntity(String name) throws SAXException {
62      }
63  
64      /* (non-Javadoc)
65       * @see org.xml.sax.ContentHandler#setDocumentLocator(org.xml.sax.Locator)
66       */
67      public void setDocumentLocator(Locator locator) {
68      }
69  
70      /* (non-Javadoc)
71       * @see org.xml.sax.ContentHandler#processingInstruction(java.lang.String, java.lang.String)
72       */
73      public void processingInstruction(String target, String data) throws SAXException {
74      }
75  
76      /* (non-Javadoc)
77       * @see org.xml.sax.ContentHandler#startPrefixMapping(java.lang.String, java.lang.String)
78       */
79      public void startPrefixMapping(String prefix, String uri) throws SAXException {
80      }
81  
82      /* (non-Javadoc)
83       * @see org.xml.sax.ContentHandler#endElement(java.lang.String, java.lang.String, java.lang.String)
84       */
85      public void endElement(String namespaceURI, String localName, String qName) throws SAXException {
86      }
87  
88      /* (non-Javadoc)
89       * @see org.xml.sax.ContentHandler#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
90       */
91      public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
92      }
93  
94  }