1 7 package org.xml.sax.helpers; 8 9 import java.io.IOException ; 10 11 import org.xml.sax.InputSource ; 12 import org.xml.sax.Locator ; 13 import org.xml.sax.Attributes ; 14 import org.xml.sax.EntityResolver ; 15 import org.xml.sax.DTDHandler ; 16 import org.xml.sax.ContentHandler ; 17 import org.xml.sax.ErrorHandler ; 18 import org.xml.sax.SAXException ; 19 import org.xml.sax.SAXParseException ; 20 21 22 59 public class DefaultHandler 60 implements EntityResolver , DTDHandler , ContentHandler , ErrorHandler 61 { 62 63 64 68 89 public InputSource resolveEntity (String publicId, String systemId) 90 throws IOException , SAXException 91 { 92 return null; 93 } 94 95 96 97 101 102 117 public void notationDecl (String name, String publicId, String systemId) 118 throws SAXException 119 { 120 } 122 123 124 140 public void unparsedEntityDecl (String name, String publicId, 141 String systemId, String notationName) 142 throws SAXException 143 { 144 } 146 147 148 149 153 154 165 public void setDocumentLocator (Locator locator) 166 { 167 } 169 170 171 183 public void startDocument () 184 throws SAXException 185 { 186 } 188 189 190 202 public void endDocument () 203 throws SAXException 204 { 205 } 207 208 209 222 public void startPrefixMapping (String prefix, String uri) 223 throws SAXException 224 { 225 } 227 228 229 241 public void endPrefixMapping (String prefix) 242 throws SAXException 243 { 244 } 246 247 248 271 public void startElement (String uri, String localName, 272 String qName, Attributes attributes) 273 throws SAXException 274 { 275 } 277 278 279 299 public void endElement (String uri, String localName, String qName) 300 throws SAXException 301 { 302 } 304 305 306 322 public void characters (char ch[], int start, int length) 323 throws SAXException 324 { 325 } 327 328 329 345 public void ignorableWhitespace (char ch[], int start, int length) 346 throws SAXException 347 { 348 } 350 351 352 367 public void processingInstruction (String target, String data) 368 throws SAXException 369 { 370 } 372 373 374 387 public void skippedEntity (String name) 388 throws SAXException 389 { 390 } 392 393 394 395 399 400 414 public void warning (SAXParseException e) 415 throws SAXException 416 { 417 } 419 420 421 435 public void error (SAXParseException e) 436 throws SAXException 437 { 438 } 440 441 442 459 public void fatalError (SAXParseException e) 460 throws SAXException 461 { 462 throw e; 463 } 464 465 } 466 467 | Popular Tags |