Class TypeFilter

  • All Implemented Interfaces:
    javax.xml.stream.EventFilter, javax.xml.stream.StreamFilter

    public class TypeFilter
    extends java.lang.Object
    implements javax.xml.stream.EventFilter, javax.xml.stream.StreamFilter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean[] types  
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeFilter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(javax.xml.stream.events.XMLEvent e)  
      boolean accept​(javax.xml.stream.XMLStreamReader r)  
      void addType​(int type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • types

        protected boolean[] types
    • Constructor Detail

      • TypeFilter

        public TypeFilter()
    • Method Detail

      • addType

        public void addType​(int type)
      • accept

        public boolean accept​(javax.xml.stream.events.XMLEvent e)
        Specified by:
        accept in interface javax.xml.stream.EventFilter
      • accept

        public boolean accept​(javax.xml.stream.XMLStreamReader r)
        Specified by:
        accept in interface javax.xml.stream.StreamFilter