Class XMLFilterWriter


  • public class XMLFilterWriter
    extends java.lang.Object
    Write FeatureFilters in XML format.
    Since:
    1.3
    Author:
    Thomas Down
    • Constructor Detail

      • XMLFilterWriter

        public XMLFilterWriter()
        Construct a new XMLFilterWriter which can serialize the buildin types of FeatureFilter.
    • Method Detail

      • isStrict

        public boolean isStrict()
        Determine if this writer is in strict mode.
      • setIsStrict

        public void setIsStrict​(boolean b)
        Selects strict mode. In strict mode, the writer will throw an IllegalArgumentException if it encounters a type of FeatureFilter it doesn't recognize. When not in strict model, unrecognized filters are silently replaced by FeatureFilter.all. Default is false.
      • writeFilter

        public void writeFilter​(FeatureFilter ff,
                                XMLWriter xw)
                         throws java.lang.IllegalArgumentException,
                                java.io.IOException
        Write a FeatureFilter to the supplied XMLWriter
        Throws:
        java.lang.IllegalArgumentException - if the FeatureFilter is unrecognized, and the writer is in strict mode.
        java.io.IOException - if an error occurs while outputting XML.