1 17 package org.apache.excalibur.xml.sax; 18 19 import org.xml.sax.ContentHandler ; 20 import org.xml.sax.SAXException ; 21 import org.xml.sax.ext.LexicalHandler ; 22 23 31 public class XMLConsumerProxy 32 extends ContentHandlerProxy implements XMLConsumer 33 { 34 35 private LexicalHandler m_lexicalHandler; 36 37 40 public XMLConsumerProxy( final ContentHandler contentHandler, final LexicalHandler lexicalHandler ) 41 { 42 super( contentHandler ); 43 m_lexicalHandler = lexicalHandler; 44 } 45 46 49 public XMLConsumerProxy( final XMLConsumer xmlConsumer ) 50 { 51 this( xmlConsumer, xmlConsumer ); 52 } 53 54 63 public void startDTD( final String name, 64 final String publicId, 65 final String systemId ) 66 throws SAXException 67 { 68 m_lexicalHandler.startDTD( name, publicId, systemId ); 69 } 70 71 74 public void endDTD() 75 throws SAXException 76 { 77 m_lexicalHandler.endDTD(); 78 } 79 80 86 public void startEntity( final String name ) 87 throws SAXException 88 { 89 m_lexicalHandler.startEntity( name ); 90 } 91 92 97 public void endEntity( final String name ) 98 throws SAXException 99 { 100 m_lexicalHandler.endEntity( name ); 101 } 102 103 106 public void startCDATA() 107 throws SAXException 108 { 109 m_lexicalHandler.startCDATA(); 110 } 111 112 115 public void endCDATA() 116 throws SAXException 117 { 118 m_lexicalHandler.endCDATA(); 119 } 120 121 128 public void comment( final char[] ch, 129 final int start, 130 final int len ) 131 throws SAXException 132 { 133 m_lexicalHandler.comment( ch, start, len ); 134 } 135 } 136 | Popular Tags |