1 8 package org.apache.avalon.excalibur.xml; 9 10 import org.apache.avalon.framework.component.Component; 11 import org.w3c.dom.Document ; 12 import org.xml.sax.ContentHandler ; 13 import org.xml.sax.InputSource ; 14 import org.xml.sax.SAXException ; 15 import org.xml.sax.ext.LexicalHandler ; 16 17 import java.io.IOException ; 18 19 29 public interface Parser extends Component { 30 31 String ROLE = "org.apache.avalon.excalibur.xml.Parser"; 32 33 40 void parse(InputSource in, ContentHandler consumer) 41 throws SAXException , IOException ; 42 43 47 Document parseDocument(InputSource in) 48 throws SAXException , IOException ; 49 } 50 | Popular Tags |