public interface XMLReader:
SAX2 interface for reading XML documents using callbacks.
Readers expose feature and property configuration, handler registration and synchronous parse entry points.
@example `klyn import org.xml.sax
reader as XMLReader = null if reader is not null: reader.setFeature("http://xml.org/sax/features/namespaces", true)
| Modifier and Type | Member | Description |
|---|---|---|
| public | getContentHandlergetContentHandler() as ContentHandler |
Returns the current content handler. |
| public | getDTDHandlergetDTDHandler() as DTDHandler |
Returns the current DTD handler. |
| public | getEntityResolvergetEntityResolver() as EntityResolver |
Returns the current entity resolver. |
| public | getErrorHandlergetErrorHandler() as ErrorHandler |
Returns the current error handler. |
| public | getFeaturegetFeature(name as String) as Boolean throws SAXNotRecognizedException, SAXNotSupportedException |
Returns the current value of a feature flag. |
| public | getPropertygetProperty(name as String) as Object throws SAXNotRecognizedException, SAXNotSupportedException |
Returns the current value of a property. |
| public | parseparse(input as InputSource) as Void throws IOException, SAXException |
Parses XML from an input source. |
| public | parseparse(systemId as String) as Void throws IOException, SAXException |
Parses XML from a system identifier. |
| public | setContentHandlersetContentHandler(handler as ContentHandler) as Void |
Registers a content handler. |
| public | setDTDHandlersetDTDHandler(handler as DTDHandler) as Void |
Registers a DTD handler. |
| public | setEntityResolversetEntityResolver(resolver as EntityResolver) as Void |
Registers an entity resolver. |
| public | setErrorHandlersetErrorHandler(handler as ErrorHandler) as Void |
Registers an error handler. |
| public | setFeaturesetFeature(name as String, value as Boolean) as Void throws SAXNotRecognizedException, SAXNotSupportedException |
Sets the current value of a feature flag. |
| public | setPropertysetProperty(name as String, value as Object) as Void throws SAXNotRecognizedException, SAXNotSupportedException |
Sets the current value of a property. |