1 17 package org.apache.excalibur.xml.sax; 18 19 import org.xml.sax.Attributes ; 20 import org.xml.sax.ContentHandler ; 21 import org.xml.sax.Locator ; 22 import org.xml.sax.SAXException ; 23 24 32 public class ContentHandlerProxy 33 implements ContentHandler 34 { 35 36 private final ContentHandler m_contentHandler; 37 38 41 public ContentHandlerProxy( final ContentHandler contentHandler ) 42 { 43 m_contentHandler = contentHandler; 44 } 45 46 49 public void setDocumentLocator( final Locator locator ) 50 { 51 m_contentHandler.setDocumentLocator( locator ); 52 } 53 54 57 public void startDocument() 58 throws SAXException 59 { 60 m_contentHandler.startDocument(); 61 } 62 63 66 public void endDocument() 67 throws SAXException 68 { 69 m_contentHandler.endDocument(); 70 } 71 72 75 public void startPrefixMapping( final String prefix, 76 final String uri ) 77 throws SAXException 78 { 79 m_contentHandler.startPrefixMapping( prefix, uri ); 80 } 81 82 85 public void endPrefixMapping( final String prefix ) 86 throws SAXException 87 { 88 m_contentHandler.endPrefixMapping( prefix ); 89 } 90 91 94 public void startElement( final String uri, 95 final String loc, 96 final String raw, 97 final Attributes a ) 98 throws SAXException 99 { 100 m_contentHandler.startElement( uri, loc, raw, a ); 101 } 102 103 106 public void endElement( final String uri, 107 final String loc, 108 final String raw ) 109 throws SAXException 110 { 111 m_contentHandler.endElement( uri, loc, raw ); 112 } 113 114 117 public void characters( final char[] ch, 118 final int start, 119 final int len ) 120 throws SAXException 121 { 122 m_contentHandler.characters( ch, start, len ); 123 } 124 125 128 public void ignorableWhitespace( final char[] ch, 129 final int start, 130 final int len ) 131 throws SAXException 132 { 133 m_contentHandler.ignorableWhitespace( ch, start, len ); 134 } 135 136 139 public void processingInstruction( final String target, 140 final String data ) 141 throws SAXException 142 { 143 m_contentHandler.processingInstruction( target, data ); 144 } 145 146 152 public void skippedEntity( final String name ) 153 throws SAXException 154 { 155 m_contentHandler.skippedEntity( name ); 156 } 157 } 158 | Popular Tags |