1 9 package javolution.xml.sax; 10 import javolution.text.CharArray; 11 import j2me.lang.UnsupportedOperationException; 12 import org.xml.sax.ErrorHandler ; 13 import org.xml.sax.Locator ; 14 import org.xml.sax.SAXException ; 15 import org.xml.sax.SAXParseException ; 16 17 24 public class DefaultHandler implements ContentHandler, ErrorHandler { 25 26 33 public void warning (SAXParseException e) throws SAXException {} 34 35 42 public void error (SAXParseException e) throws SAXException {} 43 44 51 public void fatalError (SAXParseException e) throws SAXException { 52 throw e; 53 } 54 55 public void setDocumentLocator(Locator locator) {} 57 58 public void startDocument() throws SAXException {} 60 61 public void endDocument() throws SAXException {} 63 64 public void startPrefixMapping(CharArray prefix, CharArray uri) 66 throws SAXException {} 67 68 public void endPrefixMapping(CharArray prefix) throws SAXException {} 70 71 public void startElement(CharArray namespaceURI, CharArray localName, 73 CharArray qName, Attributes atts) throws SAXException {} 74 75 public void endElement(CharArray namespaceURI, CharArray localName, 77 CharArray qName) throws SAXException {} 78 79 public void characters(char ch[], int start, int length) 81 throws SAXException {} 82 83 public void ignorableWhitespace(char ch[], int start, int length) 85 throws SAXException {} 86 87 public void processingInstruction(CharArray target, CharArray data) 89 throws SAXException {} 90 91 public void skippedEntity(CharArray name) throws SAXException {} 93 94 111 protected final void startElement( 112 CharArray uri, CharArray localName, 113 CharArray qName, org.xml.sax.Attributes atts) throws SAXException { 114 throw new UnsupportedOperationException (); 115 } 116 117 } | Popular Tags |