Methods Summary |
---|
public boolean | getFeature(java.lang.String name)
return parser.getFeature(name);
|
public org.xml.sax.Parser | getParser()To support SAX1 interface, we'll need to use an adapter.
return new SAX1ParserAdapter(parser);
|
public java.lang.Object | getProperty(java.lang.String name)
return parser.getProperty(name);
|
public org.xml.sax.XMLReader | getXMLReader() return parser;
|
public boolean | isNamespaceAware()
try {
return parser.getFeature(Parser.namespacesFeature);
} catch (SAXException sex) { // should never happen... so:
throw new RuntimeException(sex.getMessage());
}
|
public boolean | isValidating()
try {
return parser.getFeature(Parser.validationFeature);
} catch (SAXException sex) { // should never happen... so:
throw new RuntimeException(sex.getMessage());
}
|
public static org.ccil.cowan.tagsoup.jaxp.SAXParserImpl | newInstance(java.util.Map features)
SAXParserImpl parser = new SAXParserImpl();
if (features != null) {
Iterator it = features.entrySet().iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
parser.setFeature((String) entry.getKey(), ((Boolean) entry.getValue()).booleanValue());
}
}
return parser;
|
public void | setFeature(java.lang.String name, boolean value)
parser.setFeature(name, value);
|
public void | setProperty(java.lang.String name, java.lang.Object value)
parser.setProperty(name, value);
|