Package gnu.lists

Class FilterConsumer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object attributeType
      The 'attribute type' from the most recent startAttribute.
      protected Consumer base  
      protected boolean inAttribute
      We seen a startAttribute but not the closing endAttribute.
      protected boolean skipping  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Consumer append​(char c)  
      Consumer append​(java.lang.CharSequence csq)  
      Consumer append​(java.lang.CharSequence csq, int start, int end)  
      protected void beforeContent()  
      protected void beforeNode()  
      void beginEntity​(java.lang.Object baseUri)  
      void endAttribute()
      End of an attribute or end of an actual parameter.
      void endDocument()  
      void endElement()  
      void endEntity()  
      boolean ignoring()
      True if consumer is ignoring rest of element.
      void startAttribute​(java.lang.Object attrType)
      Write a attribute for the current element.
      void startDocument()  
      void startElement​(java.lang.Object type)  
      void write​(char[] buf, int off, int len)  
      void write​(int v)  
      void write​(java.lang.CharSequence str, int start, int length)  
      void write​(java.lang.String str)  
      void writeBoolean​(boolean v)  
      void writeCDATA​(char[] chars, int offset, int length)  
      void writeComment​(char[] chars, int offset, int length)  
      void writeDouble​(double v)  
      void writeFloat​(float v)  
      void writeInt​(int v)  
      void writeLong​(long v)  
      void writeObject​(java.lang.Object v)  
      void writeProcessingInstruction​(java.lang.String target, char[] content, int offset, int length)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
      • Methods inherited from interface java.util.function.DoubleConsumer

        andThen
      • Methods inherited from interface java.util.function.IntConsumer

        andThen
      • Methods inherited from interface java.util.function.LongConsumer

        andThen
    • Field Detail

      • skipping

        protected boolean skipping
      • inAttribute

        protected boolean inAttribute
        We seen a startAttribute but not the closing endAttribute.
      • attributeType

        protected java.lang.Object attributeType
        The 'attribute type' from the most recent startAttribute.
    • Constructor Detail

      • FilterConsumer

        public FilterConsumer​(Consumer base)
    • Method Detail

      • beforeContent

        protected void beforeContent()
      • beforeNode

        protected void beforeNode()
      • write

        public void write​(int v)
        Specified by:
        write in interface Consumer
      • writeBoolean

        public void writeBoolean​(boolean v)
        Specified by:
        writeBoolean in interface Consumer
      • writeFloat

        public void writeFloat​(float v)
        Specified by:
        writeFloat in interface Consumer
      • writeDouble

        public void writeDouble​(double v)
        Specified by:
        writeDouble in interface Consumer
      • writeInt

        public void writeInt​(int v)
        Specified by:
        writeInt in interface Consumer
      • writeLong

        public void writeLong​(long v)
        Specified by:
        writeLong in interface Consumer
      • startElement

        public void startElement​(java.lang.Object type)
        Specified by:
        startElement in interface Consumer
      • startAttribute

        public void startAttribute​(java.lang.Object attrType)
        Description copied from interface: Consumer
        Write a attribute for the current element. This is only allowed immediately after a startElement.
        Specified by:
        startAttribute in interface Consumer
      • endAttribute

        public void endAttribute()
        Description copied from interface: Consumer
        End of an attribute or end of an actual parameter. The former use matches a startAttribute; the latter may not, and can be used to separate parameters in a parameter list. This double duty suggsts the method should at least be re-named.
        Specified by:
        endAttribute in interface Consumer
      • writeComment

        public void writeComment​(char[] chars,
                                 int offset,
                                 int length)
        Specified by:
        writeComment in interface XConsumer
      • writeProcessingInstruction

        public void writeProcessingInstruction​(java.lang.String target,
                                               char[] content,
                                               int offset,
                                               int length)
        Specified by:
        writeProcessingInstruction in interface XConsumer
      • writeCDATA

        public void writeCDATA​(char[] chars,
                               int offset,
                               int length)
        Specified by:
        writeCDATA in interface XConsumer
      • beginEntity

        public void beginEntity​(java.lang.Object baseUri)
        Specified by:
        beginEntity in interface XConsumer
      • writeObject

        public void writeObject​(java.lang.Object v)
        Specified by:
        writeObject in interface Consumer
      • ignoring

        public boolean ignoring()
        Description copied from interface: Consumer
        True if consumer is ignoring rest of element. The producer can use this information to skip ahead.
        Specified by:
        ignoring in interface Consumer
      • write

        public void write​(char[] buf,
                          int off,
                          int len)
        Specified by:
        write in interface Consumer
      • write

        public void write​(java.lang.String str)
        Specified by:
        write in interface Consumer
      • write

        public void write​(java.lang.CharSequence str,
                          int start,
                          int length)
        Specified by:
        write in interface Consumer
      • append

        public Consumer append​(char c)
        Specified by:
        append in interface java.lang.Appendable
        Specified by:
        append in interface Consumer
      • append

        public Consumer append​(java.lang.CharSequence csq)
        Specified by:
        append in interface java.lang.Appendable
        Specified by:
        append in interface Consumer
      • append

        public Consumer append​(java.lang.CharSequence csq,
                               int start,
                               int end)
        Specified by:
        append in interface java.lang.Appendable
        Specified by:
        append in interface Consumer