Class XmlStreamFilter

    • Constructor Detail

      • XmlStreamFilter

        public XmlStreamFilter()
    • Method Detail

      • startFilter

        protected void startFilter()
        Initialize rule state and parser. Called before processing of each input.
        Overrides:
        startFilter in class AbstractMarkupFilter
      • normalizeAttributeName

        protected String normalizeAttributeName​(String attrName,
                                                String attrValue,
                                                net.htmlparser.jericho.Tag tag)
        Description copied from class: AbstractMarkupFilter
        Some attributes names are converted to Okapi standards such as HTML charset to "encoding" and lang to "language"
        Specified by:
        normalizeAttributeName in class AbstractMarkupFilter
        Parameters:
        attrName - - the attribute name
        attrValue - - the attribute value
        tag - - the Jericho Tag that contains the attribute
        Returns:
        the attribute name after it as passe through the normalization rules
      • getParameters

        public Parameters getParameters()
        Description copied from interface: IFilter
        Gets the current parameters for this filter.
        Specified by:
        getParameters in interface IFilter
        Overrides:
        getParameters in class AbstractFilter
        Returns:
        The current parameters for this filter, or null if this filter has no parameters.
      • setParametersFromURL

        public void setParametersFromURL​(URL config)
        Initialize filter parameters from a URL.
        Parameters:
        config -