Stuart McCulloch | 26e7a5a | 2011-10-17 10:31:43 +0000 | [diff] [blame] | 1 | package aQute.libg.sax; |
| 2 | |
| 3 | import org.xml.sax.Attributes; |
| 4 | import org.xml.sax.ContentHandler; |
| 5 | import org.xml.sax.Locator; |
| 6 | import org.xml.sax.SAXException; |
| 7 | |
| 8 | public class ContentFilterImpl implements ContentFilter { |
| 9 | |
| 10 | private ContentHandler parent; |
| 11 | |
| 12 | public void setParent(ContentHandler parent) { |
| 13 | this.parent = parent; |
| 14 | |
| 15 | } |
| 16 | |
| 17 | public ContentHandler getParent() { |
| 18 | return parent; |
| 19 | } |
| 20 | |
| 21 | public void setDocumentLocator(Locator locator) { |
| 22 | parent.setDocumentLocator(locator); |
| 23 | } |
| 24 | |
| 25 | public void startDocument() throws SAXException { |
| 26 | parent.startDocument(); |
| 27 | } |
| 28 | |
| 29 | public void endDocument() throws SAXException { |
| 30 | parent.endDocument(); |
| 31 | } |
| 32 | |
| 33 | public void startPrefixMapping(String prefix, String uri) |
| 34 | throws SAXException { |
| 35 | parent.startPrefixMapping(prefix, uri); |
| 36 | } |
| 37 | |
| 38 | public void endPrefixMapping(String prefix) throws SAXException { |
| 39 | parent.endPrefixMapping(prefix); |
| 40 | } |
| 41 | |
| 42 | public void startElement(String uri, String localName, String qName, |
| 43 | Attributes atts) throws SAXException { |
| 44 | parent.startElement(uri, localName, qName, atts); |
| 45 | } |
| 46 | |
| 47 | public void endElement(String uri, String localName, String qName) |
| 48 | throws SAXException { |
| 49 | parent.endElement(uri, localName, qName); |
| 50 | } |
| 51 | |
| 52 | public void characters(char[] ch, int start, int length) |
| 53 | throws SAXException { |
| 54 | parent.characters(ch, start, length); |
| 55 | } |
| 56 | |
| 57 | public void ignorableWhitespace(char[] ch, int start, int length) |
| 58 | throws SAXException { |
| 59 | parent.ignorableWhitespace(ch, start, length); |
| 60 | } |
| 61 | |
| 62 | public void processingInstruction(String target, String data) |
| 63 | throws SAXException { |
| 64 | parent.processingInstruction(target, data); |
| 65 | } |
| 66 | |
| 67 | public void skippedEntity(String name) throws SAXException { |
| 68 | parent.skippedEntity(name); |
| 69 | } |
| 70 | |
| 71 | } |