Class RelaxNGFilter

  • All Implemented Interfaces:
    IFilter

    public class RelaxNGFilter
    extends XMLFilter
    Filter for RELAX NG XML files. RELAX NG is a schema language for XML. See http://relaxng.org/
    • Constructor Detail

      • RelaxNGFilter

        public RelaxNGFilter()
        Creates a new instance of RelaxNG
    • Method Detail

      • getDefaultInstances

        public Instance[] getDefaultInstances()
        The default list of filter instances that this filter class has. One filter class may have different filter instances, different by source file mask, encoding of the source file etc.

        Note that the user may change the instances freely.

        Specified by:
        getDefaultInstances in interface IFilter
        Specified by:
        getDefaultInstances in class AbstractFilter
        Returns:
        Default filter instances
      • isFileSupported

        public boolean isFileSupported​(java.io.BufferedReader reader)
        Returns whether the file is supported by the filter by checking RELAX NG element and namespace constraints.
        Overrides:
        isFileSupported in class XMLFilter
        Returns:
        true or false