1 9 package javolution.xml.sax; 10 11 import java.io.IOException ; 12 13 import org.xml.sax.DTDHandler ; 14 import org.xml.sax.EntityResolver ; 15 import org.xml.sax.ErrorHandler ; 16 import org.xml.sax.InputSource ; 17 import org.xml.sax.SAXException ; 18 import org.xml.sax.SAXNotRecognizedException ; 19 import org.xml.sax.SAXNotSupportedException ; 20 21 29 public interface XMLReader { 30 31 87 public boolean getFeature(String name) throws SAXNotRecognizedException , 88 SAXNotSupportedException ; 89 90 113 public void setFeature(String name, boolean value) 114 throws SAXNotRecognizedException , SAXNotSupportedException ; 115 116 141 public Object getProperty(String name) throws SAXNotRecognizedException , 142 SAXNotSupportedException ; 143 144 169 public void setProperty(String name, Object value) 170 throws SAXNotRecognizedException , SAXNotSupportedException ; 171 172 176 189 public void setEntityResolver(EntityResolver resolver); 190 191 198 public EntityResolver getEntityResolver(); 199 200 213 public void setDTDHandler(DTDHandler handler); 214 215 222 public DTDHandler getDTDHandler(); 223 224 238 public void setContentHandler(ContentHandler handler); 239 240 247 public ContentHandler getContentHandler(); 248 249 265 public void setErrorHandler(ErrorHandler handler); 266 267 274 public ErrorHandler getErrorHandler(); 275 276 280 321 public void parse(InputSource input) throws IOException , SAXException ; 322 323 345 public void parse(String systemId) throws IOException , SAXException ; 346 347 } 348 | Popular Tags |