1 22 23 package org.xquark.xquery.xdbc; 24 25 import org.xml.sax.InputSource ; 26 import org.xml.sax.SAXException ; 27 import org.xml.sax.XMLReader ; 28 import org.xquark.xml.xdbc.XMLDBCException; 29 30 public class SAXDocument extends AbstractXMLDocument { 31 private static final String RCSRevision = "$Revision: 1.1 $"; 32 private static final String RCSName = "$Name: $"; 33 34 private XMLReader reader; 35 private InputSource source; 36 37 public SAXDocument(XMLReader reader, InputSource source) { 38 super(); 39 this.reader = reader; 40 this.source = source; 41 } 42 43 public void getAsSAX() throws XMLDBCException, SAXException { 44 try { 45 plugHandlers(reader); 46 reader.parse(source); 47 } catch (java.io.IOException ioex) { 48 throw new XMLDBCException(ioex.getMessage(), ioex); 49 } 50 } 51 } 52 | Popular Tags |