1 16 package org.apache.cocoon.components.parser; 17 18 import org.apache.avalon.framework.component.Component; 19 import org.apache.cocoon.xml.XMLProducer; 20 import org.apache.cocoon.xml.dom.DOMFactory; 21 import org.w3c.dom.Document ; 22 import org.xml.sax.ContentHandler ; 23 import org.xml.sax.InputSource ; 24 import org.xml.sax.SAXException ; 25 import org.xml.sax.ext.LexicalHandler ; 26 27 import java.io.IOException ; 28 29 37 public interface Parser extends Component, XMLProducer, DOMFactory { 38 39 String ROLE = Parser.class.getName(); 40 41 void setContentHandler(ContentHandler contentHandler); 42 43 void setLexicalHandler(LexicalHandler lexicalHandler); 44 45 void parse(InputSource in) throws SAXException , IOException ; 46 47 Document parseDocument(InputSource in) throws SAXException , IOException ; 48 } 49 | Popular Tags |