| 1 16 package org.outerj.daisy.publisher.serverimpl; 17 18 import org.xml.sax.ContentHandler ; 19 import org.xml.sax.SAXException ; 20 import org.xml.sax.Locator ; 21 import org.xml.sax.Attributes ; 22 23 26 public class StripDocumentHandler implements ContentHandler { 27 private final ContentHandler delegate; 28 29 public StripDocumentHandler(ContentHandler delegate) { 30 this.delegate = delegate; 31 } 32 33 public void endDocument() throws SAXException { 34 } 36 37 public void startDocument () throws SAXException { 38 } 40 41 public void characters (char ch[], int start, int length) throws SAXException { 42 delegate.characters(ch, start, length); 43 } 44 45 public void ignorableWhitespace (char ch[], int start, int length) throws SAXException { 46 delegate.ignorableWhitespace(ch, start, length); 47 } 48 49 public void endPrefixMapping (String prefix) throws SAXException { 50 delegate.endPrefixMapping(prefix); 51 } 52 53 public void skippedEntity (String name) throws SAXException { 54 delegate.skippedEntity(name); 55 } 56 57 public void setDocumentLocator (Locator locator) { 58 delegate.setDocumentLocator(locator); 59 } 60 61 public void processingInstruction (String target, String data) throws SAXException { 62 delegate.processingInstruction(target, data); 63 } 64 65 public void startPrefixMapping (String prefix, String uri) throws SAXException { 66 delegate.startPrefixMapping(prefix, uri); 67 } 68 69 public void endElement (String namespaceURI, String localName, String qName) throws SAXException { 70 delegate.endElement(namespaceURI, localName, qName); 71 } 72 73 public void startElement (String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { 74 delegate.startElement(namespaceURI, localName, qName, atts); 75 } 76 } 77 | Popular Tags |