| 1 5 package com.microstar.xml; 6 7 import com.microstar.xml.XmlHandler; 8 import com.microstar.xml.XmlException; 9 import java.io.Reader ; 10 11 12 41 public class HandlerBase implements XmlHandler { 42 43 49 public void startDocument () 50 throws java.lang.Exception  51 { 52 } 53 54 60 public void endDocument () 61 throws java.lang.Exception  62 { 63 } 64 65 72 public Object resolveEntity (String publicId, String systemId) 73 throws java.lang.Exception  74 { 75 return null; 76 } 77 78 79 85 public void startExternalEntity (String systemId) 86 throws java.lang.Exception  87 { 88 } 89 90 96 public void endExternalEntity (String systemId) 97 throws java.lang.Exception  98 { 99 } 100 101 107 public void doctypeDecl (String name, String publicId, String systemId) 108 throws java.lang.Exception  109 { 110 } 111 112 118 public void attribute (String aname, String value, boolean isSpecified) 119 throws java.lang.Exception  120 { 121 } 122 123 129 public void startElement (String elname) 130 throws java.lang.Exception  131 { 132 } 133 134 140 public void endElement (String elname) 141 throws java.lang.Exception  142 { 143 } 144 145 151 public void charData (char ch[], int start, int length) 152 throws java.lang.Exception  153 { 154 } 155 156 162 public void ignorableWhitespace (char ch[], int start, int length) 163 throws java.lang.Exception  164 { 165 } 166 167 173 public void processingInstruction (String target, String data) 174 throws java.lang.Exception  175 { 176 } 177 178 185 public void error (String message, String systemId, int line, int column) 186 throws XmlException, java.lang.Exception  187 { 188 throw new XmlException(message, systemId, line, column); 189 } 190 191 } 192 | Popular Tags |