An XML filter is like an XML reader, except that it obtains its events from another XML reader rather than a primary source like an XML document or database. Filters can modify a stream of events as they pass on to the final application.
The XMLFilterImpl
helper class provides a convenient base
for creating SAX2 filters, by passing on all EntityResolver
,
DTDHandler
, ContentHandler
and ErrorHandler
events automatically.
Note: The original documentation comes from SAX 2.0.
SEE: sax::helpers::XMLFilterImpl
sax :: XMLFilter :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
sax :: XMLReader :: content_handler
Return the current content handler.sax :: XMLReader :: content_handler=
Allow an application to register a content event handler.sax :: XMLFilter :: defaultinit
core :: Object :: defaultinit
sax :: XMLReader :: defaultinit
sax :: XMLReader :: dtd_handler
Return the current DTD handler.sax :: XMLReader :: dtd_handler=
Allow an application to register a DTD event handler.sax :: XMLReader :: entity_resolver
Return the current entity resolver.sax :: XMLReader :: entity_resolver=
Allow an application to register an entity resolver.sax :: XMLReader :: error_handler
Return the current error handler.sax :: XMLReader :: error_handler=
Allow an application to register an error event handler.sax :: XMLReader :: feature_readable
Is the retrieval of the specified feature flag supported given the current context?sax :: XMLReader :: feature_recognized
Is the specified feature flag recognized by this parser?sax :: XMLReader :: feature_writable
Is the modification of the specified feature flag supported given the current context?core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).sax :: XMLReader :: parse_file
Parse an XML document from a system identifier (URI).sax :: XMLReader :: property_readable
Is the retrieval of the specified property supported given the current context?sax :: XMLReader :: property_recognized
Is the specified property recognized by this parser?sax :: XMLReader :: property_writable
Is the modification of the specified property supported given the current context?
# Interface for an XML filter.
#
# An XML filter is like an XML reader, except that it obtains its
# events from another XML reader rather than a primary source like
# an XML document or database. Filters can modify a stream of
# events as they pass on to the final application.
#
# The `XMLFilterImpl` helper class provides a convenient base
# for creating SAX2 filters, by passing on all `EntityResolver`,
# `DTDHandler`, `ContentHandler` and `ErrorHandler` events automatically.
#
# Note: The original documentation comes from [SAX 2.0](http://www.saxproject.org).
#
# SEE: `sax::helpers::XMLFilterImpl`
interface XMLFilter super XMLReader
# Set the parent reader.
#
# This method allows the application to link the filter to
# a parent reader (which may be another filter).
fun parent=(parent: nullable XMLReader) is abstract
# Get the parent reader.
#
# This method allows the application to query the parent
# reader (which may be another filter). It is generally a
# bad idea to perform any operations on the parent reader
# directly: they should all pass through this filter.
#
# Return null if no parent has been set.
fun parent: nullable XMLReader is abstract
end
lib/sax/xml_filter.nit:16,1--47,3