1 package com.icl.saxon.aelfred; 2 3 import javax.xml.parsers.*; 4 import org.xml.sax.*; 5 6 public class SAXParserImpl extends SAXParser { 7 8 private SAXDriver parser; 9 10 public SAXParserImpl() { 11 parser = new SAXDriver(); 12 } 13 14 public Parser getParser() throws SAXException { 15 throw new SAXException("The AElfred parser is a SAX2 XMLReader"); 16 } 17 18 public Object getProperty(String name) 19 throws SAXNotRecognizedException, SAXNotSupportedException { 20 return parser.getProperty(name); 21 } 22 23 public XMLReader getXMLReader() { 24 return parser; 25 } 26 27 public boolean isNamespaceAware() { 28 return true; 29 } 30 31 public boolean isValidating() { 32 return false; 33 } 34 35 102 103 public void setProperty(String name, Object value) 104 throws SAXNotRecognizedException, SAXNotSupportedException { 105 parser.setProperty(name, value); 106 } 107 } 108 109 | Popular Tags |