KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mr > core > util > xml > sax > SinkContentHandler


1 package org.mr.core.util.xml.sax;
2
3 import org.xml.sax.SAXException JavaDoc;
4 import org.xml.sax.ext.DeclHandler JavaDoc;
5 import org.xml.sax.ext.LexicalHandler JavaDoc;
6 import org.xml.sax.helpers.DefaultHandler JavaDoc;
7
8 import java.io.Serializable JavaDoc;
9
10 /*
11  * Copyright 2002 by
12  * <a HREF="http://www.coridan.com">Coridan</a>
13  * <a HREF="mailto: support@coridan.com ">support@coridan.com</a>
14  *
15  * The contents of this file are subject to the Mozilla Public License Version
16  * 1.1 (the "License"); you may not use this file except in compliance with the
17  * License. You may obtain a copy of the License at
18  * http://www.mozilla.org/MPL/
19  *
20  * Software distributed under the License is distributed on an "AS IS" basis,
21  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
22  * for the specific language governing rights and limitations under the
23  * License.
24  *
25  * The Original Code is "MantaRay" (TM).
26  *
27  * The Initial Developer of the Original Code is Coridan.
28  * Portions created by the Initial Developer are Copyright (C) 2006
29  * Coridan Inc. All Rights Reserved.
30  *
31  * Contributor(s): all the names of the contributors are added in the source
32  * code where applicable.
33  *
34  * Alternatively, the contents of this file may be used under the terms of the
35  * LGPL license (the "GNU LESSER GENERAL PUBLIC LICENSE"), in which case the
36  * provisions of LGPL are applicable instead of those above. If you wish to
37  * allow use of your version of this file only under the terms of the LGPL
38  * License and not to allow others to use your version of this file under
39  * the MPL, indicate your decision by deleting the provisions above and
40  * replace them with the notice and other provisions required by the LGPL.
41  * If you do not delete the provisions above, a recipient may use your version
42  * of this file under either the MPL or the GNU LESSER GENERAL PUBLIC LICENSE.
43  
44  *
45  * This library is free software; you can redistribute it and/or modify it
46  * under the terms of the MPL as stated above or under the terms of the GNU
47  * Lesser General Public License as published by the Free Software Foundation;
48  * either version 2.1 of the License, or any later version.
49  *
50  * This library is distributed in the hope that it will be useful, but WITHOUT
51  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
52  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
53  * License for more details.
54  */

55
56  /**
57  * User: Moti Tal
58  * Date: Feb 20, 2005
59  * Time: 2:53:04 PM
60   *
61  * This ContentHandler simply drops all SAX events sent to it. It is used by other ContentHandler implementations
62  * so that they can check once if the next in the chain can manage certain family of events and if not a Sink handler is put instead.
63  */

64 public class SinkContentHandler extends DefaultHandler JavaDoc implements LexicalHandler JavaDoc, DeclHandler JavaDoc, Serializable JavaDoc {
65
66     /////////////////////////////////////
67
// LexicalHandler
68
////////////////////////////////////
69
public void startDTD(String JavaDoc s, String JavaDoc s1, String JavaDoc s2) throws SAXException JavaDoc {
70     }
71
72     public void endDTD() throws SAXException JavaDoc {
73     }
74
75     public void startEntity(String JavaDoc s) throws SAXException JavaDoc {
76     }
77
78     public void endEntity(String JavaDoc s) throws SAXException JavaDoc {
79     }
80
81     public void startCDATA() throws SAXException JavaDoc {
82     }
83
84     public void endCDATA() throws SAXException JavaDoc {
85     }
86
87     public void comment(char[] i_chars, int i, int i1) throws SAXException JavaDoc {
88     }
89
90     /////////////////////////////////
91
// DeclHandler
92
/////////////////////////////////
93
public void elementDecl(String JavaDoc s, String JavaDoc s1) throws SAXException JavaDoc {
94     }
95
96     public void attributeDecl(String JavaDoc s, String JavaDoc s1, String JavaDoc s2, String JavaDoc s3, String JavaDoc s4) throws SAXException JavaDoc {
97     }
98
99     public void internalEntityDecl(String JavaDoc s, String JavaDoc s1) throws SAXException JavaDoc {
100     }
101
102     public void externalEntityDecl(String JavaDoc s, String JavaDoc s1, String JavaDoc s2) throws SAXException JavaDoc {
103     }
104 }
105
Popular Tags