Source code: joelib/io/types/cml/XMLHandler.java
1 ///////////////////////////////////////////////////////////////////////////////
2 //Filename: $RCSfile: XMLHandler.java,v $
3 //Purpose: Chemical Markup Language.
4 //Language: Java
5 //Compiler: JDK 1.4
6 //Authors: steinbeck@ice.mpg.de, gezelter@maul.chem.nd.edu,
7 // egonw@sci.kun.nl, wegnerj@informatik.uni-tuebingen.de
8 //Version: $Revision: 1.3 $
9 // $Date: 2003/08/19 13:11:26 $
10 // $Author: wegner $
11 //
12 //Copyright (C) 1997-2003 The Chemistry Development Kit (CDK) project
13 //Copyright (c) Dept. Computer Architecture, University of Tuebingen, Germany
14 //
15 //This program is free software; you can redistribute it and/or
16 //modify it under the terms of the GNU Lesser General Public License
17 //as published by the Free Software Foundation; either version 2.1
18 //of the License, or (at your option) any later version.
19 //All we ask is that proper credit is given for our work, which includes
20 //- but is not limited to - adding the above copyright notice to the beginning
21 //of your source code files, and to any copyright notice that you may distribute
22 //with programs based on this work.
23 //
24 //This program is distributed in the hope that it will be useful,
25 //but WITHOUT ANY WARRANTY; without even the implied warranty of
26 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 //GNU Lesser General Public License for more details.
28 //
29 //You should have received a copy of the GNU Lesser General Public License
30 //along with this program; if not, write to the Free Software
31 //Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 ///////////////////////////////////////////////////////////////////////////////
33 package joelib.io.types.cml;
34
35 import java.io.PrintStream;
36
37 import org.xml.sax.AttributeList;
38 import org.xml.sax.HandlerBase;
39
40
41 /**
42 * DOCUMENT ME!
43 *
44 * @author $author$
45 * @version $Revision: 1.3 $
46 */
47 public class XMLHandler extends HandlerBase
48 {
49 //~ Instance fields ////////////////////////////////////////////////////////
50
51 private CMLCoreModule conv;
52
53 //~ Constructors ///////////////////////////////////////////////////////////
54
55 public XMLHandler(CDOInterface cdo)
56 {
57 conv = new CMLCoreModule(cdo);
58 }
59
60 //~ Methods ////////////////////////////////////////////////////////////////
61
62 public void characters(char[] ch, int start, int length)
63 {
64 }
65
66 public void doctypeDecl(String name, String publicId, String systemId)
67 throws Exception
68 {
69 }
70
71 public void endDocument()
72 {
73 conv.endDocument();
74 }
75
76 public void endElement(String name)
77 {
78 }
79
80 public CDOInterface returnCDO()
81 {
82 return conv.returnCDO();
83 }
84
85 public void startDocument()
86 {
87 conv.startDocument();
88 }
89
90 public void startElement(String name, AttributeList atts)
91 {
92 }
93 }
94 ///////////////////////////////////////////////////////////////////////////////
95 // END OF FILE.
96 ///////////////////////////////////////////////////////////////////////////////