View Javadoc

1   package net.sf.tomp.xtcl.filter;
2   
3   import org.xml.sax.SAXException;
4   
5   /***
6    * A trace XTFilter -- prints SAX events on stdout
7    * 
8    * @author tomp
9    */
10  public class PokusXTFilter extends XTFilterImpl {
11      /***
12       * DOCUMENT ME!
13       * 
14       * @throws SAXException DOCUMENT ME!
15       */
16      public void startDocument() throws SAXException {
17          System.out.println("!!!" + this + ".startDocument");
18  
19          //startDTD("graph", "graph-public", "graph.dtd");
20          super.startDocument();
21      }
22  
23      /***
24       * DOCUMENT ME!
25       * 
26       * @throws SAXException DOCUMENT ME!
27       */
28      public void endDocument() throws SAXException {
29          System.out.println("!!!" + this + ".endDocument");
30          super.endDocument();
31      }
32  
33      /***
34       * DOCUMENT ME!
35       * 
36       * @param prefix DOCUMENT ME!
37       * @param uri DOCUMENT ME!
38       * @throws SAXException DOCUMENT ME!
39       */
40      public void startPrefixMapping(String prefix, String uri)
41              throws SAXException {
42          System.out.println("!!!" + this + ".startPrefixMapping " + prefix + ":"
43                  + uri);
44          super.startPrefixMapping(prefix, uri);
45      }
46  
47      /***
48       * DOCUMENT ME!
49       * 
50       * @param prefix DOCUMENT ME!
51       * @throws SAXException DOCUMENT ME!
52       */
53      public void endPrefixMapping(String prefix) throws SAXException {
54          System.out.println("!!!" + this + ".endPrefixMapping " + prefix);
55          super.endPrefixMapping(prefix);
56      }
57  
58      /*
59       * public void comment(char[] s, int b, int l) throws SAXException {
60       * System.out.println("!!!"+this+".comment="+new String(s, b, l));
61       * super.comment(s, b, l); }
62       */
63      /*
64       * public void startElement (String uri, String localName, String qName,
65       * Attributes atts) throws SAXException {
66       * System.out.println("!!!"+this+".startElement "+localName);
67       * super.startElement(uri, localName, qName, atts); } public void endElement
68       * (String uri, String localName, String qName) throws SAXException {
69       * System.out.println("!!!"+this+".endElement "+localName);
70       * super.endElement(uri, localName, qName); } public void startDTD (String
71       * name, String publicId, String systemId) throws SAXException {
72       * System.out.println("!!!"+this+".startDTD "+name+" publicId="+publicId+"
73       * systemId="+systemId); super.startDTD(name, publicId, systemId); }
74       */
75  }
76  
77  /*
78   * The contents of this file are subject to the Mozilla Public License Version
79   * 1.1 (the "License"); you may not use this file except in compliance with the
80   * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
81   * Software distributed under the License is distributed on an "AS IS" basis,
82   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
83   * the specific language governing rights and limitations under the License. The
84   * Original Code is: all this file. The Initial Developer of the Original Code
85   * is: Tomas Pitner, Masaryk University in Brno, Czech Republic. Contributor(s):
86   */