Package gnu.lists

Interface Consumer

    • Method Detail

      • writeBoolean

        void writeBoolean​(boolean v)
      • writeFloat

        void writeFloat​(float v)
      • writeDouble

        void writeDouble​(double v)
      • writeInt

        void writeInt​(int v)
      • writeLong

        void writeLong​(long v)
      • startDocument

        void startDocument()
      • endDocument

        void endDocument()
      • startElement

        void startElement​(Object type)
      • endElement

        void endElement()
      • startAttribute

        void startAttribute​(Object attrType)
        Write a attribute for the current element. This is only allowed immediately after a startElement.
      • endAttribute

        void endAttribute()
        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.
      • writeObject

        void writeObject​(Object v)
      • ignoring

        boolean ignoring()
        True if consumer is ignoring rest of element. The producer can use this information to skip ahead.
      • write

        void write​(int ch)
      • write

        void write​(String string)
      • write

        void write​(CharSequence string,
                   int start,
                   int length)
      • write

        void write​(char[] buf,
                   int start,
                   int length)
      • accept

        default void accept​(int t)
        Specified by:
        accept in interface IntConsumer
      • accept

        default void accept​(long t)
        Specified by:
        accept in interface LongConsumer