gnu.lists
Class VoidConsumer

java.lang.Object
  extended by gnu.lists.FilterConsumer
      extended by gnu.lists.VoidConsumer
All Implemented Interfaces:
Consumer, java.lang.Appendable

public class VoidConsumer
extends FilterConsumer

A Consumer that does nothing.


Field Summary
static VoidConsumer instance
           
 
Fields inherited from class gnu.lists.FilterConsumer
base, skipping
 
Constructor Summary
VoidConsumer()
           
 
Method Summary
static VoidConsumer getInstance()
           
 boolean ignoring()
          True if consumer is ignoring rest of group.
 
Methods inherited from class gnu.lists.FilterConsumer
append, append, append, beginAttribute, beginDocument, beginGroup, endAttribute, endDocument, endGroup, write, writeBoolean, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static VoidConsumer instance
Constructor Detail

VoidConsumer

public VoidConsumer()
Method Detail

getInstance

public static VoidConsumer getInstance()

ignoring

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

Specified by:
ignoring in interface Consumer
Overrides:
ignoring in class FilterConsumer